-
Notifications
You must be signed in to change notification settings - Fork 413
Expand file tree
/
Copy pathmixer.html
More file actions
281 lines (265 loc) · 13.7 KB
/
Copy pathmixer.html
File metadata and controls
281 lines (265 loc) · 13.7 KB
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
<div class="tab-configuration tab-mixer toolbar_fixed_bottom">
<div class="content_wrapper" id="mixer-main-content">
<div class="tab_title" data-i18n="tabMixer">Mixer</div>
<!-- Top row -->
<div>
<div class="leftWrapper">
<div class="platform-type gui_box grey">
<div class="gui_box_titlebar">
<div class="spacer_box_title" data-i18n="platformConfiguration"></div>
</div>
<div class="spacer_box">
<div class="select">
<select id="platform-type"></select>
<label for="platform-type">
<span data-i18n="platformType"></span>
</label>
</div>
<div class="radio" id="motor_direction_container">
<fieldset>
<legend>Motor direction</legend>
<label for="motor_direction_normal">
<input id="motor_direction_normal" name="motor_direction_inverted" type="radio"
value="0" data-setting="motor_direction_inverted" class="left" />
<span data-i18n="motor_direction_inverted"></span>
</label><br class="clear-both"/>
<label class="checkbox-inline">
<input id="motor_direction_inverted" name="motor_direction_inverted" type="radio"
value="1" data-setting="motor_direction_inverted" class="left"/>
<span data-i18n="motor_direction_isInverted"></span>
</span></label>
<div class="helpicon cf_tip" data-i18n_title="motor_direction_inverted_hint"></div>
</fieldset>
</div>
<div class="checkbox">
<input id="mixer_control_profile_linking" type="checkbox" class="toggle" data-setting="mixer_control_profile_linking" />
<label for="mixer_control_profile_linking"><span data-i18n="mixer_control_profile_linking"></span></label>
<div class="helpicon cf_tip" data-i18n_title="mixer_control_profile_linking_hint"></div>
</div>
</div>
</div>
</div>
<div class="rightWrapper">
<div class="platform-type gui_box grey">
<div class="gui_box_titlebar">
<div class="spacer_box_title" data-i18n="mixerPresetTitle"></div>
</div>
<div class="spacer_box">
<div class="select position-relative">
<div class="mixerPreview" style="max-width: 175px">
<img src="./resources/motor_order/custom.svg" id="motor-mixer-preview-img"/>
<div class="motorNumber is-hidden" id="motorNumber1">1</div>
<div class="motorNumber is-hidden" id="motorNumber2">2</div>
<div class="motorNumber is-hidden" id="motorNumber3">3</div>
<div class="motorNumber is-hidden" id="motorNumber4">4</div>
</div>
<div class="half" style="width: calc(50% - 10px); margin-left: 10px;">
<select id="mixer-preset"></select>
</div>
<div class="mixer-load-button">
<div id="needToUpdateMixerMessage" class="is-hidden" data-i18n="mixerNotLoaded"></div>
<div class="btn default_btn narrow red">
<a id="load-and-apply-mixer-button" href="#" data-i18n="mixerLoadAndApplyPresetRules"></a>
</div>
<div class="btn default_btn narrow">
<a id="load-mixer-button" href="#" data-i18n="mixerLoadPresetRules"></a>
</div>
<div class="btn default_btn narrow is-hidden">
<a id="refresh-mixer-button" href="#" data-i18n="mixerRefreshCurrentRules"></a>
</div>
</div>
</div>
</div>
</div>
<div class="platform-type gui_box grey" id="mixer-wizard-gui_box" is-hidden>
<div class="gui_box_titlebar">
<div class="spacer_box_title" data-i18n="mixerWizard"></div>
</div>
<div class="spacer_box">
<div class="btn default_btn narrow green">
<a id="mixer-wizard" href="#" data-i18n="mixerWizard"></a>
</div>
</div>
</div>
</div>
</div>
<div class="clear-both"></div>
<div class="gui_box grey">
<div class="gui_box_titlebar">
<div class="spacer_box_title" data-i18n="mappingTableTitle"></div>
</div>
<table class="output-table">
<tr id="timer-row">
</tr>
<tr id="output-row">
</tr>
<tr id="function-row">
</tr>
</table>
</div>
<!-- middle row -->
<div class="clear-both"></div>
<!-- bottom row -->
<div class="motor-mixer gui_box grey">
<div class="gui_box_titlebar">
<div class="spacer_box_title" data-i18n="motorMixer"></div>
</div>
<div class="spacer_box">
<table id="motor-mix-table" class="mixer-table">
<thead>
<tr>
<th style="width: 75px" data-i18n="controlAxisMotor"></th>
<th data-i18n="controlAxisThrottle"></th>
<th data-i18n="controlAxisRoll"></th>
<th data-i18n="controlAxisPitch"></th>
<th data-i18n="controlAxisYaw"></th>
<th class="delete"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="btn default_btn narrow pull-right green mixer_btn_add">
<a href="#" data-role="role-motor-add" data-i18n="servoMixerAdd"></a>
</div>
</div>
</div>
<div class="motor-mixer gui_box grey">
<div class="gui_box_titlebar">
<div class="spacer_box_title" data-i18n="servoMixer"></div>
</div>
<div class="spacer_box">
<table id="servo-mix-table" class="mixer-table">
<thead>
<tr>
<th style="width: 75px" data-i18n="servo"></th>
<th data-i18n="input"></th>
<th data-i18n="fixedValue" class="mixer-fixed-value-col"></th>
<th data-i18n="weight"></th>
<th data-i18n="speed"></th>
<th data-i18n="active"></th>
<th class="delete"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="btn default_btn narrow pull-right green mixer_btn_add">
<a href="#" data-role="role-servo-add" data-i18n="servoMixerAdd"></a>
</div>
<div class="btn default_btn narrow pull-left mixer_btn_logic">
<a href="#" data-role="role-logic-conditions-open" data-i18n="tabLogicConditions"></a>
</div>
</div>
</div>
<div id="logic-wrapper" style="display: none">
<div class="logic__background"></div>
<div class="logic__content">
<div class="tab_title" data-i18n="tabLogicConditions"></div>
<div class="logic__content--wrapper">
<table class="mixer-table logic__table">
<thead>
<tr>
<th style="width: 50px" data-i18n="logicId"></th>
<th style="width: 80px" data-i18n="logicEnabled"></th>
<th style="width: 120px" data-i18n="logicOperation"></th>
<th data-i18n="logicOperandA"></th>
<th data-i18n="logicOperandB"></th>
<th data-i18n="logicActivator"></th>
<th data-i18n="logicFlags"></th>
<th data-i18n="logicStatus"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="logic__content--buttons content_toolbar">
<div class="btn save_btn">
<a href="#" class="logic__save" data-i18n="logicSave"></a>
</div>
<div class="btn save_btn red">
<a href="#" class="logic__close" data-i18n="logicClose"></a>
</div>
</div>
</div>
</div>
</div>
<div id="mixerApplyContent" class="is-hidden">
<div class="modal__content">
<h1 class="modal__title modal__title--warning" data-i18n="presetsApplyHeader"></h1>
<div class="modal__text" data-i18n="mixerApplyDescription"></div>
</div>
<div class="modal__buttons">
<a id="execute-button" class="modal__button modal__button--main" data-i18n="mixerButtonSaveAndReboot"></a>
</div>
</div>
<div id="mixerWizardContent" class="is-hidden">
<div class="modal__content">
<h1 class="modal__title modal__title--warning" data-i18n="mixerWizardModalTitle"></h1>
<div class="modal__text">
<p data-i18n="mixerWizardInfo"></p>
<table style="margin-top: 1em;" class="mixer-table">
<thead>
<th data-i18n="mixerWizardMotorPosition"></th>
<th data-i18n="mixerWizardMotorIndex"></th>
</thead>
<tbody>
<tr>
<th data-i18n="motorWizard0"></th>
<td>
<select class="wizard-motor-select" data-motor="0">
<option id="0" selected="selected">Motor #1</option>
<option id="1">Motor #2</option>
<option id="2">Motor #3</option>
<option id="3">Motor #4</option>
</select>
</td>
</tr>
<tr>
<th data-i18n="motorWizard1"></th>
<td>
<select class="wizard-motor-select" data-motor="1">
<option id="0">Motor #1</option>
<option id="1" selected="selected">Motor #2</option>
<option id="2">Motor #3</option>
<option id="3">Motor #4</option>
</select>
</td>
</tr>
<tr>
<th data-i18n="motorWizard2"></th>
<td>
<select class="wizard-motor-select" data-motor="2">
<option id="0">Motor #1</option>
<option id="1">Motor #2</option>
<option id="2" selected="selected">Motor #3</option>
<option id="3">Motor #4</option>
</select>
</td>
</tr>
<tr>
<th data-i18n="motorWizard3"></th>
<td>
<select class="wizard-motor-select" data-motor="3">
<option id="0">Motor #1</option>
<option id="1">Motor #2</option>
<option id="2">Motor #3</option>
<option id="3" selected="selected">Motor #4</option>
</select>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal__buttons--upbottom">
<a id="wizard-execute-button" class="modal__button modal__button--main" data-i18n="mixerWizardModalApply"></a>
</div>
</div>
<div class="content_toolbar">
<div class="btn save_btn">
<a id="save-button" class="save" href="#" data-i18n="configurationButtonSave"></a>
</div>
</div>
</div>