You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
722 B
JavaScript
45 lines
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;
|
|
}; |