mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
MSP Interface for Programming PID
This commit is contained in:
parent
c046e53a13
commit
3188680793
6 changed files with 194 additions and 0 deletions
33
js/programmingPidCollection.js
Normal file
33
js/programmingPidCollection.js
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue