forked from EnsadLab/MisBKIT_js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_old.html
975 lines (806 loc) · 37.2 KB
/
index_old.html
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>misB KIT WIFI 5.1 TCP</title>
<link rel="stylesheet" href="css/jquery-ui.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/toggle.css">
<link rel="author" href="humans.txt">
</head>
<body>
<button class="btn-connexions">Connexions</button>
<div class="wapper">
<div class="connexions">
<h2>Connexions</h2>
<div class="plug cm9Plug">
<!--button class="gear"><img src="assets/settings.png"></button-->
<p>
CM9 <!--span class="status" id="cm9Text"></span-->
<!-- TODO cf MisGUI $('#btcm9').on('click'... ON OFF ERROR -->
<input id="btcm9" type="checkbox" class="small onoff" name ="enable" title="enable/disable">
</p>
<div id="cm9Content" class="content">
<!--button class="gear" data-id="pasglop"><img src="assets/settings.png"></button-->
<br>CM9 :
<input id="numCm9" type="number" class="small cmd" name="" placeholder="CM9 number">
<span class="status" id="cm9Text">...</span>
<!-- input type="checkbox" name ="glou">SINGLE<br>
<br>
<input class="styled-checkbox" type="checkbox" >CM9_1<br>
<input class="styled-checkbox" type="checkbox" >CM9_2<br>
<input class="styled-checkbox" type="checkbox" >CM9_3<br>
<input class="styled-checkbox" type="checkbox" >CM9_4<br>
<input class="styled-checkbox" type="checkbox" >CM9_5<br>
<input class="styled-checkbox" type="checkbox" >CM9_6<br -->
</div>
</div>
<div class="plug arduinoPlug">
<p>
Arduino
<input type="checkbox" class="small onoff">
</p>
<div id="cm9Content" class="content">
<br>Arduino :          
<font color='gray'> Serial: </font>
<input id="numCm9" type="number" class="small cmd" placeholder="none">
<button class="gear tiny float-right"><img src="assets/settings.png"></button>
</div>
</div>
<div class="plug midiPlug">
<p>
MIDI <span class="status" id="midiText"></span>
<input id="btmidi" type="checkbox" class="small cmdTog" name ="enable"title="enable/disable">
</p>
<div class="content">
<br>Midi :<br>
<hr>
<!-- <button class="disconnected" id="btMidi">scan</button>
<br> -->
<div class="midi-available" id="midi-available">
<input class="styled-checkbox" type="checkbox" id="midi1">midi<br>
<input class="styled-checkbox" type="checkbox" id="midi2" >midi<br>
<input class="styled-checkbox" type="checkbox" id="midi3" >midi<br>
<input class="styled-checkbox" type="checkbox" id="midi4" >midi<br>
<input class="styled-checkbox" type="checkbox" id="midi5" >midi<br>
<input class="styled-checkbox" type="checkbox" id="midi6" >midi<br>
</div>
</div>
</div>
<div id="divOSC" class="plug">
<p>
OSC <span class="status"></span>
<input id="btOSC" type="checkbox" class="small warning cmdOnOff" name ="enable" title="enable/disable">
</p>
<div class="content advanced">
<br>OSC :<br>
<hr>
<font color='gray'>
<div class="infoIP">Local IP: localhost</div>
</font>
input Port:
<input type="number" class="small set-value cmdInt" name="oscLocalPort" align="right" placeholder="6666">
<hr>
IP:<input type="text" class="name cmdString" name="oscRemoteIP" placeholder="255.255.255.255" size="18" title="address IP">
<!--input type="number" class="OSC-setting" placeholder="port" name=""-->
output Port:
<input type="number" class="small set-value cmdInt" name="oscRemotePort" align="right" placeholder="7777">
<!--ul></ul-->
<hr>
+
<br>
</div>
</div>
<div id="divMobilizing" class="plug">
<p>
M.js
<input id="mbzOnOff" data-func="oscMobilizing.onOff" type="checkbox" class="small stopAll" name ="enable" title="enable/disable">
</p>
<div class="content">
<br>MOBILIZING :
<br>
<hr>
<font color='gray'>
Server:
<div class="mbzIP">
ws://localhost:8080<br>ws://localhost:8080</div>
</font>
</div>
</div>
<div id="robusPlug" class="plug robusManager">
<p>
LUOS <span func="spanText" class="status"></span>
<input func="freeze" id="robusOnOff" type="checkbox" class="small onoff" title="enable/disable">
</p>
<div class="content">
<br>Robots :
<button func="addLuosBot" class="float-right"> Add Luos Bot</button>
<br>
<!--hr>
<label class="toggle-small">
<input type="checkbox" func="serialWifi" checked="false">
<div class="slider serial round" css=""></div>
</label-->
<!--select func="selectPort" class= "small tiny" style="width:250px;"></select-->
<!--input func="setWifiName" type="text" style="width:250px;" placeholder="websoket">
<button class="close"><img src="assets/close.png" alt=""></button>
<br-->
<!--button func="onClick" name="#1">Button1</button-->
<!--hr>
<span func="plugInfo">info-info-info</span>
<br>
<textarea func="textArea" rows=6 cols=15>octo_wifi</textarea>
<hr-->
<!--input type="text" func="onText"><br>
<input type="number" func="onNum1"><br>
<input type="number" func="onNum2"><br-->
<!--select func="onSelect" class= "small tiny">
<option>none</option>
<option value="opt 1">opt 1</option>
<option value="opt 2">opt 2</option>
<option value="opt 3">opt 3</option>
<option value="opt 4">opt 4</option>
</select-->
<div class="robusbot" style="display:none;">
<hr>
<input func="enable" id="robusOnOff" type="checkbox" class="power" title="enable/disable">
<label class="toggle-small">
<input type="checkbox" func="serialWifi" checked="false">
<div class="slider serial round" css=""></div>
</label>
<select func="selectPort" class= "small tiny" style="width:250px; display:none;"></select>
<input func="setWifiName" type="text" style="width:250px;" placeholder="websoket">
<button func="killme" class="close"><img src="assets/close.png" alt=""></button>
<br>
<font color='lightblue' size="2">
Base: <input func="robAlias" type=text style="width:80px;">
Id: <input func="robId" type="text" style="width:30px;">
Type: <input func="robType" type="text" style="width:100px;">
</font>
<!--font color='lightblue' size="2">
Alias: <input func="robAlias" type=text style="width:80px;">
Id: <input func="robId" type="text" style="width:30px;">
Type: <input func="robType" type="text" style="width:100px;"><br>
p1:<input func="robP1" type="text" style="width:50px;">
p5:<input func="robP5" type="text" style="width:50px;">
p6:<input func="robP6" type="text" style="width:50px;">
p7:<input func="robP7" type="text" style="width:50px;">
p8:<input func="robP8" type="text" style="width:50px;">
p9:<input func="robP9" type="text" style="width:50px;">
module:<select func="selectModule" class="small tiny" style="width:150px;"></select>
pin:<select func="selectParam" class="small tiny" style="width:100px;"></select>
val:<input func="robVal" type="text" style="width:50px;">
<input type="text" func="botText">
<input type="number" func="botNum">
</font-->
</div>
<!--input type="text" name="rien"-->
<!--
<textarea id="robusRobots" rows=6 cols=15>octo_wifi</textarea>
<div class="large">
<button id="robusOnOff2" class="disconnected" >OFF</button>
<button id="robusReset" class="disconnected" >RESET</button>
<button id="robusInfo" class="disconnected" >info</button>
</div>
-->
<!--
<br>
<textarea id="robusTxt" rows=18 cols=15>message</textarea>
-->
</div>
</div>
<div class="plug rosPlug">
<p>
R.O.S.
<input type="checkbox" class="small onoff">
</p>
<div class="content">
<br>ROS :
<font color='gray'> Serial: </font>
<select class= "small tiny" style="width:250px;">
<option>none</option>
</select>
</div>
</div>
<!--div class="plug" >
<p>
ADVANCED :
<button class="gear"><img src="assets/settings.png"></button>
</p>
<input type="text" size="3">
</div-->
</div>
<!-- MOTORS -->
<div class="motors" >
<div class="motors-btn-group">
<h2>Motors</h2>
<input type="checkbox" class="small btnGlobalMotor" id ="motor-freeze" title="enable/disable">
<button class="advanced gear float-right small"><img src="assets/settings.png" alt=""></button>
<div class="tools float-right small show">
<button class="start-rec">Start RECording</button>
</div>
<div class="tools float-right medium hide">
<button class="gear tiny" id="opener" data-id="dynamixel-ctrl"><img src="assets/settings.png"></button>
<button class="tiny small" id="btScan" name="startScan">Scan</button>
<!--div id="scanProgress"></div-->
<meter id="scanProgress" class="medium" value="0" max="254"></meter>
<!--/div-->
</div>
</div>
<div id="divMotors" class="allMotors dxlManager">
<!-- SINGLE MOTOR -->
<div class="single-motor">
<div class="midi-blinker" title="midi chanel - note/cc">•</div>
<div class="left-col">
<div func="dxlIndex" param="index" class="motor-index">0</div>
<div func="dxlParam" param="dxlID" class="identity">42</div>
<input func="dxlEnable" param="enabled" type="checkbox" class="power"
title="enable/disable">
<input func="checkRec" param="rec" type="checkbox" class="rec"
title="check for next record">
</div>
<div class="circle">
<svg class="rotAngle" ></svg>
<svg class="rotSpeed" ></svg>
</div>
<div class="properties">
<img src="assets/thermometer.png" class="ico-thermo" alt="">
<div class="thermo">_</div>
<label class="switch">
<input func="dxlMode" param="mode" false="joint" true="wheel" type="checkbox">
<div class="slider round"></div>
</label>
</div>
<!--Didier: ajout d'un input number-->
<input func="onControl" type="number" class="num_rotary" placeholder="angle/speed">
</div>
</div>
<!-- Advanced Motors -->
<div id="divMotorSettings" class="motors-settings dxlManager">
<!-- AREVOIR : bouton tools ... -->
<!--div-->
<!-- SINGLE MOTOR Advanced-->
<div class="single-motor">
<div class="left-col">
<div class="identity">
<label for="">id :</label>
<input func="dxlID" param="dxlID" type="number" class="small" placeholder="0" min="0" max="253">
</div>
</div>
<div class="advanced">
<ul>
<li><input func="dxlParam" param="angleMin" type="number" class="small" placeholder="Angle Min"><label for="">Angle Min </label></li>
<li><input func="dxlParam" param="angleMax" type="number" class="small" placeholder="Angle Max"><label for="">Angle Max </label></li>
<li><input func="dxlParam" param="speedMin" type="number" class="small" placeholder="Speed Min"><label for="">Speed Min </label></li>
<li><input func="dxlParam" param="speedMax" type="number" class="small" placeholder="Speed Max"><label for="">Speed Max </label></li>
</ul>
</div>
<div class="properties">
<label class="toggle-small">
<input func="dxlParam" param="clockwise" type="checkbox"> <!--class="cmdTog" name="clockwise"-->
<div class="slider clock round"></div>
</label>
</div>
<div class="large">
<div class="medium float-left">
<label class="">midi : </label>
<select func="midiMapping" param="port" class= "small tiny midi-chanel" id="" name="midiPorts">
<option>none</option>
<option value="midi 1">midi 1</option>
<option value="midi 2">midi 2</option>
<option value="midi 3">midi 3</option>
<option value="midi 4">midi 4</option>
</select>
<label class="toggle-small">
<input func="midiMapping" param="mode" type="checkbox"> <!--class="cmdTog" name="midiMode"-->
<div class="slider midi round"></div>
</label>
</div>
<div class="medium text-right float-right">
<label class="">mapping : </label>
<input func="midiMapping" param="num" type="number" class="small midiMapping" placeholder="num"> <!--name="mapping"-->
</div>
</div>
</div>
</div>
</div>
<div class="left-side">
<div class="head">
<div class="tab">
<h2 id="anims">Animations</h2><input type="checkbox" class="small btnGlobalAnim" id="anim-freeze" name ="enable"title="enable/disable">
</div>
<!-- //////////// -->
<!-- !!!!!!!!!!!!!!!!!!! REMOVED SENSOR TAB -->
<div class="tab">
<h2 id="sens">Sensors </h2> <input type="checkbox" class="small btnGlobalSensors" id="sensor-freeze" name ="enable"title="enable/disable">
</div>
<!-- <h2 id="anims">Animations</h2><input type="checkbox" class="small cmdTog btnGlobalAnim" id="anim-freeze" name ="enable"title="enable/disable"> -->
<!-- <button class="load"><img src="assets/open.png" alt="" id="loadAnim"></button> -->
<button id="loadAnim" class="animBTN float-right"><img src="assets/open.png" alt="" id=""> Load animation</button>
<!-- <h2 id="sens">Sensors </h2> <input type="checkbox" class="small cmdTog btnGlobalSensors" id="sensor-freeze" name ="enable"title="enable/disable"> -->
<button id="addEmptySensor" class="sensorsBTN float-right"><img src="assets/add.png" alt="" id="loadAnim"> Add Sensor</button>
<button id="loadSensor" class="sensorsBTN float-right"><img src="assets/open.png" alt="" id=""> Load Sensor</button>
</div>
<div class="animations" id="divAnims">
<ul id="sortable-anim" >
<!-- SIngle Animation -->
<li class="single-anim ui-state-default">
<button class="close"><img src="assets/close.png" alt=""></button>
<input type="text" class="name" placeholder="Nom de l'animation" name="animName" size="40">
<button class="gear tiny float-right"><img data-id="animPopup" src="assets/settings.png"></button>
<div class="anim-motors">
<input type="text" class="shorcut" placeholder="?" name="animKey">
<input type="checkbox" class="motor-none" name="track">
<input type="checkbox" class="motor-none" name="track">
<input type="checkbox" class="motor-none" name="track">
<input type="checkbox" class="motor-none" name="track">
<input type="checkbox" class="motor-none" name="track">
<input type="checkbox" class="motor-none" name="track">
<div class="controls">
<button class="play"><img src="assets/play.png" alt="" name="play"></button>
<button class="stop"><img src="assets/stop.png" alt="" name="stop"></button>
<button class="loop"><img src="assets/loop.png" alt="" name="loop"></button>
</div>
<meter name="progress" class="progress" value="70" max="100"></meter>
</div>
</li>
</ul>
</div>
<div class="sensors sensorManager">
<ul id="sortable-sens" name="listSensors" >
<!-- SIngle Sensors -->
<!-- <li class="single-sensor ui-state-default">
<button class="close"><img src="assets/close.png" alt=""></button>
<input type="checkbox" class="power float-left cmdTog" name ="sensorOnOff" title="enable/disable">
<input type="text" class="float-left medium" placeholder="Sensor name" name="sensorName" size="58">
<p class="info medium-75 float-left">CM9 to OSC</p>
<div class="sensor-setting">
<div class="live-value-ui">•</div>
</div>
</li> -->
<!-- END SIngle Sensors -->
<!-- SIngle Sensors -->
<li class="single-sensor ui-state-default activ" func="selectSensor" type="submit">
<button class="close" func="removeSensor"><img src="assets/close.png" alt=""></button>
<input type="checkbox" func="enable" class="power float-left cmdTog" name ="sensorOnOff" title="enable/disable">
<input type="text" func="onNameText" class="float-left medium" placeholder="Sensor name" name="sensorName" size="58">
<p class="info medium-75 float-left" func="textDescription" type="text">CM9 to OSC aaaaaaaaaabbbbbbbbbb</p>
<div class="sensor-setting">
<div class="live-value-ui">•</div>
<div class="green-bar"></div>
</div>
</li>
<!-- END SIngle Sensors -->
</ul>
<div class="sensor-setting-more" eltID="default">
<select name="input" func="onSelectInput" id="" class="large">
<option value="default">Select Input</option>
<option value="cm9">CM9</option>
<option value="osc">OSC</option>
<option value="midi">Midi</option>
<option value="motor">Mapping from motor</option>
<option value="mobilizing">Mobilizing</option>
<option value="robus">Robus</option>
<option value="sinus">Sinus</option>
<option value="random">Random</option>
</select>
<div class="input-wrapper">
<!-- INPUT -->
<section name="cm9">
<div class="medium float-left ">
<input type="checkbox" func="changeSettingsVariable" class=" small cmdOnOff" param="cm9EnabledInput" title="enable/disable">
<h4>CM9</h4>
</div>
<div class="medium float-left text-right">
<input type="number" func="changeSettingsVariable" class="medium tiny float-right" placeholder="pin number" param="cm9Pin"> <!--class="large tiny"-->
</div>
</section>
<section name="osc">
<div class="medium float-left ">
<input type="checkbox" func="changeSettingsVariable" class="small cmdOnOff" param ="oscEnabledInput" title="enable/disable">
<h4>OSC</h4>
</div>
<!--
<div class="medium float-left text-right">
<input type="text" class="large tiny" placeholder="adress" name="">
</div>
-->
</section>
<section name="mobilizing">
<div class="medium float-left ">
<input type="checkbox" func="changeSettingsVariable" class="small cmdOnOff" param ="mobilizingEnabledInput" title="enable/disable">
<h4>Mobilizing</h4>
</div>
</section>
<section class="hight" name="midi">
<div class="large float-left">
<input type="checkbox" func="changeSettingsVariable" class="small cmdOnOff" param ="midiEnabledInput" title="enable/disable">
<h4>Midi</h4>
</div>
<div class="large float-left">
<div class="medium float-left">
<label class="toggle-small">
<input type="checkbox" func="changeSettingsVariable" class="cmdTog" param="midiCmdInput">
<div class="slider midi round"></div>
</label>
</div>
<div class="medium float-right text-right">
<input type="number" func="changeSettingsVariable" class="medium-75 tiny" placeholder="index" param="midiMappingInput">
</div>
<div class="large">
<select class= " tiny large cmdString" func="onMidiInput" id="" name="midiPortInput">
<option value="">midi 1</option>
<option value="midi 2">midi 2</option>
<option value="">midi 3</option>
<option value="">midi 4</option>
</select>
</div>
</div>
</section>
<section name="motor">
<div class="medium float-left">
<input type="checkbox" func="changeSettingsVariable" class="small cmdOnOff" param ="motorEnabledInput" title="enable/disable">
<h4>Motor Mapping</h4>
</div>
<div class="medium float-right text-right">
<input type="number" func="changeSettingsVariable" class="medium tiny float-right" placeholder="index" param="fromMotorIndex">
</div>
</section>
<section class="hight robusInput" name="robus">
<div class="medium float-left">
<input type="checkbox" func="changeSettingsVariable" class="small cmdOnOff" param ="robusEnabledInput" title="enable/disable">
<h4>Robus</h4>
</div>
<div class="medium float-right text-right">
<select class= "float-right" func="onRobusParam" param="gate" style="width:145px;">
<option value="default">gate</option>
<option value="gate">gate</option>
</select>
</div>
<div class="tiny float-left"> </div>
<div class="large float-left">
<div class="float-left">
<select class= "float-right" func="onRobusParam" param="module" style="width:145px;" >
<option value="default">none</option>
<option value="L0_1">L0_1</option>
<!--option value="L0_2">L0_2</option>
<option value="L0_3">L0_3</option>
<option value="L0_4">L0_4</option-->
</select>
</div>
<div class="float-right text-right">
<select class= "float-right" func="onRobusParam" param="pin" style="width:145px;">
<option value="default">pin</option>
<option value="p1">p1</option>
<!--option value="p5">p5</option>
<option value="p6">p6</option>
<option value="p7">p7</option>
<option value="p8">p8</option>
<option value="p9">p9</option-->
</select>
</div>
</div>
<!--div class="large float-left">
<select class= "tiny cmdString float-right" func="onRobusInput" name="robusInput" style="width:150px;">
<option value="default">module</option>
</select>
</div-->
<!--div class="large">
<select class= "tiny large cmdString" id="" name="robusInput"></select>
<select class= "tiny large cmdString" id="" name="robusInput"></select>
</div>
</div-->
</section>
<section class="hight sinusInput" name="sinus">
<div class="medium float-left">
<input func="inputOnOff" type="checkbox" class="small cmdOnOff" title="enable/disable">
<h4>Sinus</h4>
</div>
<div class="medium float-left text-left">
<button class="gear tiny float-left" func="setPopupValues" data-id="sinusPopup"><img src="assets/settings.png"></button>
</div>
Period(seconds):<input func="inputParam" param="period" type="number" class="medium tiny float-right" placeholder="1" param="">
</section>
<section class="randomInput" name="random"> <!-- pour test-->
<div class="medium float-left">
<input func="inputOnOff" type="checkbox" class="small cmdOnOff" title="enable/disable">
<h4>Random</h4>
</div>
<div class="medium float-right text-right">
<!--button class="gear tiny" id="opener" data-id="randomPopup"><img src="assets/settings.png"></button-->
<button class="gear tiny" func="setPopupValues" data-id="randomPopup"><img src="assets/settings.png"></button>
</div>
</section>
</div>
<div class="live-view">
<div class="info small float-left text-left">
min <br><br>
<input type="number" func="onMinValue" name="min-value-sensors" class="medium tiny" value="0">
</div>
<div class="small float-left text-center">
<span class="live-value">20</span>
</div>
<div class="info small float-right text-right">
max <br><br>
<input type="number" func="onMaxValue" name="max-value-sensors" class="medium tiny" value="100">
</div>
<div class="live-value-ui">•</div>
<div class="green-bar"></div>
</div>
<select name="output" func="onSelectOutput" id="output" class="large">
<option value="default">Add output</option>
<option value="animations">Trigger animation</option>
<option value="osc">send OSC messages</option>
<option value="midi">send Midi</option>
<option value="motor">Map values to motor</option>
<option value="mobilizing">send to Mobilizing</option>
</select>
<div>
<ul id="sortable-sens-output" name="listOutput">
<!-- OUTPUT -->
<!-- À refaire -->
<li class="ui-state-default" name="animations">
<section class="animation" id="animation-switcher" name="animations">
<div class="large float-left ">
<input type="checkbox" func="changeSettingsVariable" class="small cmdOnOff" param ="animationsEnabledOutput" title="enable/disable">
<h4>Animations switcher</h4>
</div>
<div class="large float-left">
<br>
<!--
<div class="select-anim-1">
<select class="listAnims-1 active" func="onChangeAnim" param="anim1" name="anim1" id="">
<option value="">Animation 1</option>
<option value="">Animation 2</option>
<option value="">Animation 3</option>
<option value="">Animation 4</option>
</select>
</div>
-->
<div class="select-anim-1">
<!--<select class="listAnims-1 active" func="onChangeAnim" param="anim1" id="">-->
<select class="listAnims-1 active" func="onChangeAnim" param="anim1" id="">
<option value="">test 1</option>
<option value="">test 2</option>
<option value="">Animation 3</option>
<option value="">Animation 4</option>
</select>
</div>
<div class="select-anim-2">
<select class= "listAnims-2" func="onChangeAnim" param="anim2" id="">
<option value="">test 1</option>
<option value="">test 2</option>
<option value="">test 3</option>
<option value="">test 4</option>
</select>
</div>
<div class="tolerance-ui"></div>
<div class="sensor-range">
<!-- <div class="minV">...</div>
<div class="maxV">...</div>-->
<div class="currentV">...</div>
<!-- <input type="number" class=" currentV small tiny cmdInt" placeholder="..." name="threshold">-->
<!--<input type="number" class=" currentV small tiny" placeholder="...">-->
<div class="slider-range" data-min="0" data-max="100" data-default= "50" ></div>
</div>
<div class="large">
<div class="large float-left">
<h4 class="text-left">Tolerance :</h4>
<input type="number" func="onTolerance" name="tolerance-sensors" class="tolerance small" placeholder="tolerance" value="20" >
</div>
<!--
<div class="medium float-left">
<h4 class="text-left">Min value :</h4>
<input type="number" class=" minval small tiny cmdInt" placeholder="min value" name="valMin">
</div>
<div class="medium float-right">
<h4 class="text-right">Max value :</h4>
<input type="number" class=" maxval small text-right tiny cmdInt" placeholder="max value" name="valMax">
</div>
-->
</div>
</div>
</section>
</li>
<li class="ui-state-default" name="osc">
<section name="osc">
<div class="medium float-left ">
<input type="checkbox" func="changeSettingsVariable" class="small cmdOnOff" param ="oscEnabledOutput" title="enable/disable">
<h4>OSC</h4>
</div>
<!--
<div class="medium float-left text-right">
<input type="text" class="large tiny" placeholder="adress" name="">
</div>
-->
</section>
</li>
<li class="ui-state-default" name="motor">
<section name="motor">
<div class="medium float-left">
<input type="checkbox" func="changeSettingsVariable" class="small cmdOnOff" param ="motorEnabledOutput" title="enable/disable">
<h4>Motor Mapping</h4>
</div>
<div class="medium float-right text-right">
<input type="number" func="changeSettingsVariable" class="medium tiny float-right" placeholder="index" param="toMotorIndex">
</div>
</section>
</li>
<li class="ui-state-default" name="midi">
<section class="hight" name="midi">
<div class="large float-left">
<input type="checkbox" func="changeSettingsVariable" class="small cmdOnOff" param ="midiEnabledOutput" title="enable/disable">
<h4>Midi</h4>
</div>
<div class="large float-left">
<div class="medium float-left">
<label class="toggle-small">
<input type="checkbox" class="cmdTog" func="changeSettingsVariable" param="midiCmdOutput">
<div class="slider midi round"></div>
</label>
</div>
<div class="medium float-right text-right">
<input type="number" func="changeSettingsVariable" class="medium-75 tiny" placeholder="index" param="midiMappingOutput">
</div>
<div class="large">
<select class= " tiny large cmdString" func="onMidiOutput" id="" name="midiPortOutput">
<option value="">midi 1</option>
<option value="midi 2">midi 2</option>
<option value="">midi 3</option>
<option value="">midi 4</option>
</select>
</div>
</div>
</section>
</li>
<li class="ui-state-default" name="mobilizing">
<section name="mobilizing">
<div class="medium float-left ">
<input type="checkbox" func="changeSettingsVariable" class="small cmdOnOff" param ="mobilizingEnabledOutput" title="enable/disable">
<h4>Mobilizing</h4>
</div>
<!--
<div class="medium float-left text-right">
<input type="text" class="large tiny" placeholder="adress" name="">
</div>
-->
</section>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- --------- BOITES DE DIALOGUES -------- -->
<div class="modale draggable sensorManager sinusPopup" id="sinusPopup" style="display: none; width:550px">
<button class="close-modale"><img src="assets/close.png" alt=""></button>
Sinus(just for testing): ><span func="sinusName"></span>
<hr>
<font color='lightgreen'>
<label class="label100">Period : </label><input func="inputParam" param="period" type="text" size="4">
</font>
<br>
<hr>
</div>
<div class="modale draggable sensorManager randomPopup" id="randomPopup" style="display: none; width:550px">
<button id="closeDxl" class="close-modale"><img src="assets/close.png" alt=""></button>
<!-- input type="text" size="10" func="rndName"><label for="">Name</label><br-->
Random: > <span func="randomName"></span>
<button class="sensorsBTN float-right"><img src="assets/add.png" id="loadAnim">Add Disturb</button>
<hr>
<font color='lightgreen'>
<label class="label100">Period Min : </label><input func="inputParam" param="periodMin" type="text" size="4">
<label class="label100">Val 1 Min : </label><input func="inputParam" param="v1min" type="text" size="5">
<label class="label100">Val 2 Min : </label><input func="inputParam" param="v2min" type="text" size="5">
<br>
<label class="label100">Period Max : </label><input func="inputParam" param="periodMax" type="text" size="4">
<label class="label100">Val 1 Max : </label><input func="inputParam" param="v1max" type="text" size="5">
<label class="label100">Val 2 Max : </label><input func="inputParam" param="v2max" type="text" size="5">
</font>
<br>
<hr>
</div>
<div class="modale draggable animManager animPopup" id="animPopup" style="display: none; width:550px">
<button class="close-modale"><img src="assets/close.png" alt=""></button>
(just for testing): ><span func="sinusName"></span>
<hr>
<font color='lightgreen'>
<label class="label100">Param : </label><input func="inputParam" param="test" type="text" size="4">
</font>
<br>
<hr>
</div>
<div class="modale draggable dxlManager dxlPopup" id="dynamixel-ctrl" style="display: none;">
<button id="closeDxl" class="close-modale"><img src="assets/close.png" alt=""></button>
<input type="text" size="5" id="btAdvID"><label for="">[ID]</label>
              
              
------> change ID :  
<input id="changeDxlID" type="text" size="5"> <!--class="float-right"-->
<br>
<div id="divDxlReg" >
<div class="medium float-left">
<br><input func="dxlWrite" param="000" type="text" size="5"><label for=""> MODEL</label>
<br><input func="dxlWrite" param="002" type="text" size="5"><label for=""> FIRMWARE</label>
<br><input func="dxlWrite" param="004" type="text" size="5"><label for=""> BAUDS</label>
<br><input func="dxlWrite" param="005" type="text" size="5"><label for=""> DELAY</label>
<br><input func="dxlWrite" param="006" type="text" size="5"><label for=""> CW LIMIT</label>
<br><input func="dxlWrite" param="008" type="text" size="5"><label for=""> CCW LIMIT</label>
<br><input func="dxlWrite" param="014" type="text" size="5"><label for=""> MAX TORQUE</label>
<br><input func="dxlWrite" param="016" type="text" size="5"><label for=""> RETURN LEVEL</label>
<br><input func="dxlWrite" param="017" type="text" size="5"><label for=""> ALARM LED</label>
<br><input func="dxlWrite" param="018" type="text" size="5"><label for=""> ALARM SHUTDOWN</label>
<br><input func="dxlWrite" param="024" type="text" size="5"><label for=""> TORQUE ENABLE</label>
</div>
<div class="medium float-left">
<br><input func="dxlWrite" param="025" type="text" size="5"><label for=""> LED</label>
<br><input func="dxlWrite" param="026" type="text" size="5"><label for=""> PID 1</label>
<br><input func="dxlWrite" param="027" type="text" size="5"><label for=""> PID 2</label>
<br><input func="dxlWrite" param="028" type="text" size="5"><label for=""> PID 3</label>
<br><input func="dxlWrite" param="029" type="text" size="5"><label for=""> PID 4</label>
<br><input func="dxlWrite" param="030" type="text" size="5"><label for=""> GOAL</label>
<br><input func="dxlWrite" param="032" type="text" size="5"><label for=""> SPEED</label>
<br><input func="dxlWrite" param="034" type="text" size="5"><label for=""> TORQUE</label>
<br><input func="dxlWrite" param="036" type="text" size="5"><label for=""> POSITION</label>
<br><input func="dxlWrite" param="043" type="text" size="5"><label for=""> TEMPERATURE</label>
</div>
</div>
<div class="large text-center">
<button id="btDxlRefresh" class="medium">refresh</button>
</div>
</div>
<div class="modale draggable" id="alertThermo" height="200">
<button class="close-modale"><img src="assets/close.png" alt=""></button>
</div>
<!-- MODELE MODALE -->
<!--
sur n'importe quel élément du DOM : div, img, li ... n'importe quelle balise
on met la classe "gear"
et l'attribut data-id="option-sensors" (on met ce qu'on veut comme id)
puis on crée la modale comme ci-dessous, où on répéte l'id
Ensuite on peut mettre ce qu'on veut entre les balise de la div "modale draggable"
-->
<!-- <div class="modale draggable" id="option-sensors">
Modale des sensors
</div> -->
<!-- Sans Electron-->
<!--
<script src="libs/jquery-2.2.3.min.js"></script>
<script src="libs/d3.v3.min.js"></script>
<script src="js/jquery-ui-1.11.4/jquery-ui.js"></script>
-->
<script src="js/_defines_.js"></script>
<!-- Electron -->
<script>window.$ = window.jQuery = require('./libs/jquery-2.2.3.min.js');</script>
<script src="js/jquery-ui-1.11.4/jquery-ui.js"></script>
<script src="libs/jquery.blockUI.js"></script>
<!--script src="js/MisBKIT.js"></script-->
<script src="js/SerialClass.js"></script>
<script src="js/SettingsManager.js"></script>
<script src="js/MidiPort.js"></script>
<script src="js/MidiPortManager.js"></script>
<script src="js/UdpSocket.js"></script>
<script src="js/Cm9Manager.js"></script>
<script src="js/Messages.js"></script>
<script src="libs/d3.v3.min.js"></script>
<script src="js/alex.js"></script>
<script src="js/ui.js"></script>
<script src="js/Animations.js"></script>
<script src="js/WidgetD3.js"></script>
<script src="js/DxlMotor.js"></script>
<script src="js/DxlManager.js"></script>
<script src="js/MisGUI.js"></script>
<script src="js/MisGUI_sensors.js"></script>
<script src="js/index.js"></script>
<script src="js/Robus.js"></script>
<script src="js/RobusManager.js"></script>
<script src="js/MotorMapping.js"></script>
<script src="js/MotorMappingManager.js"></script>
<script src="js/Sensor.js"></script>
<script src="js/SensorManager.js"></script>
<script src="js/OscManager.js"></script>
<script src="js/OscMobilizing.js"></script>
</body>
</html>