mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-26 17:55:21 +03:00
possibility to add and delete motor and servo rule
This commit is contained in:
parent
34c13c5010
commit
97e4ece259
1 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
/*global $*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
TABS.mixer = {};
|
TABS.mixer = {};
|
||||||
|
@ -220,6 +221,20 @@ TABS.mixer.initialize = function (callback, scrollPosition) {
|
||||||
renderMotorMixRules();
|
renderMotorMixRules();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("[data-role='role-servo-add']").click(function () {
|
||||||
|
if (SERVO_RULES.hasFreeSlots()) {
|
||||||
|
SERVO_RULES.put(new ServoMixRule(0, 0, 100, 0));
|
||||||
|
renderServoMixRules();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$("[data-role='role-motor-add']").click(function () {
|
||||||
|
if (MOTOR_RULES.hasFreeSlots()) {
|
||||||
|
MOTOR_RULES.put(new MotorMixRule(1, 0, 0, 0));
|
||||||
|
renderMotorMixRules();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
localize();
|
localize();
|
||||||
GUI.content_ready(callback);
|
GUI.content_ready(callback);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue