Merge branch 'master' into release-2-6-0
commit
94d3d2d2b4
@ -0,0 +1,80 @@
|
||||
/*global $,FC*/
|
||||
'use strict';
|
||||
|
||||
let ProgrammingPid = function (enabled, setpointType, setpointValue, measurementType, measurementValue, gainP, gainI, gainD, gainFF) {
|
||||
let self = {};
|
||||
|
||||
self.getEnabled = function () {
|
||||
return !!enabled;
|
||||
};
|
||||
|
||||
self.setEnabled = function (data) {
|
||||
enabled = !!data;
|
||||
};
|
||||
|
||||
self.getSetpointType = function () {
|
||||
return setpointType;
|
||||
};
|
||||
|
||||
self.setSetpointType = function (data) {
|
||||
setpointType = data;
|
||||
};
|
||||
|
||||
self.getSetpointValue = function () {
|
||||
return setpointValue;
|
||||
};
|
||||
|
||||
self.setSetpointValue = function (data) {
|
||||
setpointValue = data;
|
||||
};
|
||||
|
||||
self.getMeasurementType = function () {
|
||||
return measurementType;
|
||||
};
|
||||
|
||||
self.setMeasurementType = function (data) {
|
||||
measurementType = data;
|
||||
};
|
||||
|
||||
self.getMeasurementValue = function () {
|
||||
return measurementValue;
|
||||
};
|
||||
|
||||
self.setMeasurementValue = function (data) {
|
||||
measurementValue = data;
|
||||
};
|
||||
|
||||
self.getGainP = function () {
|
||||
return gainP;
|
||||
};
|
||||
|
||||
self.setGainP = function (data) {
|
||||
gainP = data;
|
||||
};
|
||||
|
||||
self.getGainI = function () {
|
||||
return gainI;
|
||||
};
|
||||
|
||||
self.setGainI = function (data) {
|
||||
gainI = data;
|
||||
};
|
||||
|
||||
self.getGainD = function () {
|
||||
return gainD;
|
||||
};
|
||||
|
||||
self.setGainD = function (data) {
|
||||
gainD = data;
|
||||
};
|
||||
|
||||
self.getGainFF = function () {
|
||||
return gainFF;
|
||||
};
|
||||
|
||||
self.setGainFF = function (data) {
|
||||
gainFF = data;
|
||||
};
|
||||
|
||||
return self;
|
||||
};
|
@ -0,0 +1,33 @@
|
||||
'use strict';
|
||||
|
||||
let ProgrammingPidCollection = function () {
|
||||
|
||||
let self = {},
|
||||
data = [],
|
||||
$container;
|
||||
|
||||
self.put = function (element) {
|
||||
data.push(element);
|
||||
};
|
||||
|
||||
self.get = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
self.flush = function () {
|
||||
data = [];
|
||||
};
|
||||
|
||||
self.getCount = function () {
|
||||
return data.length
|
||||
};
|
||||
|
||||
self.open = function () {
|
||||
self.render();
|
||||
$container.show();
|
||||
};
|
||||
|
||||
|
||||
|
||||
return self;
|
||||
};
|
Loading…
Reference in New Issue