-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcontrol.htm
92 lines (88 loc) · 3.83 KB
/
control.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<title>Neewer DL-200</title>
<script src='ble-dl200.js'></script>
</head>
<body>
<div>
<b>Neewer DL-200 Bluetooth Control Version 1.0</b>
<hr>
Connection
<p>
<button onClick='connect()' id="connect">c<u>o</u>nnect</button>
<button onClick='disconnect()'><u>d</u>isconnect</button>
<button onClick='emergencystop()'><b><u>e</u>mergency stop</b></button>
<p>
<i>The speed will rapidly change from 5 to 1 to show connection is successful.</i>
<hr>
Main Movements
<p>
<button onmousedown='gototheleft()' onmouseup='movementrelease()' ontouchend='movementrelease()'>go left</button>
<button onmousedown='gototheright()' onmouseup='movementrelease()' ontouchend='movementrelease()'>go right</button>
<button onClick='gotostop()'>stop</button>
<input onChange='changemomentary(this.checked)' checked type="checkbox" id="momentary" name="momentary" value=true> <u>m</u>omentary
<p>
<i>Arrow keys or numpad to move, space to stop</i>
<hr>
Speed and Acceleration Settings
<p>
<button onClick='setspeed(1)'>speed <u>1</u></button>
<button onClick='setspeed(2)'>speed <u>2</u></button>
<button onClick='setspeed(3)'>speed <u>3</u></button>
<button onClick='setspeed(4)'>speed <u>4</u></button>
<button onClick='setspeed(5)'>speed <u>5</u></button><br>
<p>
<button onClick='slowaccel()'><u>s</u>low acceleration</button>
<button onClick='constantaccel()'><u>c</u>onstant acceleration</button>
<br>
<br><br>
<b><i>Special Functions</i></b>
<hr>
Ping Pong
<p>
<i>Move the dolly back and forth. 'End sequence' gracefully finishes the remaining movement. A 'Stop' command will end the movement early.</i>
<p>
<button onClick='backforth(true)'><u>l</u>eft then right repeatedly</button>
<button onClick='backforth(false)'><u>r</u>ight then left repeatedly</button>
<button id='stop' onClick='stopsequence()'>e<u>n</u>d sequence</button>
<p>
[Travel for <input onChange='settravelfor(this.value)' type="number" value="4000" min="500" max="999999" step="500" /> ms]
[Stop for <input onChange='setstopfor(this.value)' type="number" value="4000" min="500" max="999999" step="500" /> ms]
<hr>
Super slowmode
<p>
<i>Uses the slow acceleration setting and a repeated on/off with delay to achieve a very slow movement.</i>
<p>
<button onClick='superslow(true)'>super slow left</button>
<button onClick='superslow(false)'>super slow right</button>
<button onClick='stopsequence()'>stop superslow</button>
<p>
[Delay factor <input onChange='setsuperslowdelay(this.value)' type="number" value="150" min="25" max="350" step="25" /> ms]
<p>
<i>Comma to go left, period to go right, space to stop.</i>
<hr>
Fixed duration movements
<p>
<i>Timed movements, also suitable for micromovements. The smallest movement is not terribly accurate and occasionally the little dude will just keep on going, so caution. The minimum is roughly equal to 0.4mm.</i>
<p>
<button onClick='movesmallest(true)'>fixed duration left</button>
<button onClick='movesmallest(false)'>fixed duration right</button>
[ In motion for <input onChange='setmovesmallestdelay(this.value)' type="number" value="425" min="125" max="999999" step="50" /> ms ]
<p>
<i>Minus and plus keys trigger fixed duration movements.</i>
<p>
<!-- <button onClick='stopsequence()'>stop</button> -->
<hr>
Tests
<p><i>Attempt to move the device for one second in effort to compare the distance travelled at speed 1 vs super slow speed.</i>
<p>
<button onClick='testspeed1(true)'>test speed 1 left</button>
<button onClick='testspeed1(false)'>test speed 1 right</button>
<p>
<button onClick='testslowspeed(true)'>test super slow left</button>
<button onClick='testslowspeed(false)'>test super slow right</button>
<p>
</body>
</html>