1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-16 21:05:28 +03:00

Support 16 servos

This commit is contained in:
Pawel Spychalski (DzikuVx) 2019-07-09 12:42:54 +02:00
parent f432bcff45
commit 9b01cec4fb
4 changed files with 4 additions and 4 deletions

View file

@ -211,7 +211,7 @@ var FC = {
}; };
MOTOR_DATA = new Array(8); MOTOR_DATA = new Array(8);
SERVO_DATA = new Array(8); SERVO_DATA = new Array(16);
GPS_DATA = { GPS_DATA = {
fix: 0, fix: 0,

View file

@ -5,7 +5,7 @@ let ServoMixerRuleCollection = function () {
let self = {}, let self = {},
data = [], data = [],
maxServoCount = 8; maxServoCount = 16;
self.setServoCount = function (value) { self.setServoCount = function (value) {
maxServoCount = value; maxServoCount = value;

View file

@ -120,7 +120,7 @@ TABS.mixer.initialize = function (callback, scrollPosition) {
$servoMixTableBody.append('\ $servoMixTableBody.append('\
<tr>\ <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><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-rate" step="1" min="-125" max="125" /></td>\
<td><input type="number" class="mix-rule-speed" step="1" min="0" max="255" /></td>\ <td><input type="number" class="mix-rule-speed" step="1" min="0" max="255" /></td>\

View file

@ -182,7 +182,7 @@ TABS.servos.initialize = function (callback) {
let usedServoIndex = 0; let usedServoIndex = 0;
for (let servoIndex = 0; servoIndex < 8; servoIndex++) { for (let servoIndex = 0; servoIndex < 16; servoIndex++) {
process_servos('Servo ' + servoIndex, '', servoIndex); process_servos('Servo ' + servoIndex, '', servoIndex);
} }
if (usedServoIndex == 0) { if (usedServoIndex == 0) {