1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-24 16:55:22 +03:00

UI for smix rules

This commit is contained in:
Pawel Spychalski (DzikuVx) 2018-01-24 16:25:39 +01:00
parent 912864bc19
commit cf3a5b2a64
11 changed files with 257 additions and 76 deletions

View file

@ -5,27 +5,41 @@ var ServoMixRule = function (target, input, rate, speed) {
var self = {};
// self.target = target;
// self.input = input;
// self.rate = rate;
// self.speed = speed;
self.getTarget = function () {
return target;
};
self.setTarget = function (data) {
target = data;
};
self.getInput = function () {
return input;
};
self.setInput = function (data) {
input = data;
};
self.getRate = function () {
return rate;
};
self.setRate = function (data) {
rate = data;
};
self.getSpeed = function () {
return speed;
};
self.setSpeed = function (data) {
speed = data;
};
self.isUsed = function () {
return rate !== 0;
};
return self;
};