mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 16:55:22 +03:00
Support 16 servos
This commit is contained in:
parent
f432bcff45
commit
9b01cec4fb
4 changed files with 4 additions and 4 deletions
2
js/fc.js
2
js/fc.js
|
@ -211,7 +211,7 @@ var FC = {
|
|||
};
|
||||
|
||||
MOTOR_DATA = new Array(8);
|
||||
SERVO_DATA = new Array(8);
|
||||
SERVO_DATA = new Array(16);
|
||||
|
||||
GPS_DATA = {
|
||||
fix: 0,
|
||||
|
|
|
@ -5,7 +5,7 @@ let ServoMixerRuleCollection = function () {
|
|||
|
||||
let self = {},
|
||||
data = [],
|
||||
maxServoCount = 8;
|
||||
maxServoCount = 16;
|
||||
|
||||
self.setServoCount = function (value) {
|
||||
maxServoCount = value;
|
||||
|
|
|
@ -120,7 +120,7 @@ TABS.mixer.initialize = function (callback, scrollPosition) {
|
|||
|
||||
$servoMixTableBody.append('\
|
||||
<tr>\
|
||||
<td><input type="number" class="mix-rule-servo" step="1" min="0" max="7" /></td>\
|
||||
<td><input type="number" class="mix-rule-servo" step="1" min="0" max="15" /></td>\
|
||||
<td><select class="mix-rule-input"></select></td>\
|
||||
<td><input type="number" class="mix-rule-rate" step="1" min="-125" max="125" /></td>\
|
||||
<td><input type="number" class="mix-rule-speed" step="1" min="0" max="255" /></td>\
|
||||
|
|
|
@ -182,7 +182,7 @@ TABS.servos.initialize = function (callback) {
|
|||
|
||||
let usedServoIndex = 0;
|
||||
|
||||
for (let servoIndex = 0; servoIndex < 8; servoIndex++) {
|
||||
for (let servoIndex = 0; servoIndex < 16; servoIndex++) {
|
||||
process_servos('Servo ' + servoIndex, '', servoIndex);
|
||||
}
|
||||
if (usedServoIndex == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue