mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 04:45:18 +03:00
Switch to MSP2_INAV_SERVO_MIXER when possible
This commit is contained in:
parent
fa3d57749f
commit
6306f53da6
3 changed files with 35 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
/*global $*/
|
||||
'use strict';
|
||||
|
||||
var ServoMixRule = function (target, input, rate, speed) {
|
||||
var ServoMixRule = function (target, input, rate, speed, condition) {
|
||||
|
||||
var self = {};
|
||||
|
||||
|
@ -41,5 +41,13 @@ var ServoMixRule = function (target, input, rate, speed) {
|
|||
return rate !== 0;
|
||||
};
|
||||
|
||||
self.getConditionId = function () {
|
||||
return (condition == undefined) ? -1 : condition;
|
||||
}
|
||||
|
||||
self.setConditionId = function (data) {
|
||||
condition = data;
|
||||
};
|
||||
|
||||
return self;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue