1
0
Fork 0
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:
Pawel Spychalski (DzikuVx) 2019-03-10 12:07:30 +01:00
parent fa3d57749f
commit 6306f53da6
3 changed files with 35 additions and 2 deletions

View file

@ -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;
};