1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00
inav-configurator/js/servoMixRule.js
Pawel Spychalski (DzikuVx) cf3a5b2a64 UI for smix rules
2018-01-24 16:25:39 +01:00

45 lines
No EOL
722 B
JavaScript

/*global $*/
'use strict';
var ServoMixRule = function (target, input, rate, speed) {
var self = {};
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;
};