mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Backend for getting logic conditions from FC
This commit is contained in:
parent
3c7cf5fc47
commit
d6ded2404e
8 changed files with 166 additions and 5 deletions
25
js/logicConditionsCollection.js
Normal file
25
js/logicConditionsCollection.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
'use strict';
|
||||
|
||||
let LogicConditionsCollection = function () {
|
||||
|
||||
let self = {},
|
||||
data = [];
|
||||
|
||||
self.put = function (element) {
|
||||
data.push(element);
|
||||
};
|
||||
|
||||
self.get = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
self.flush = function () {
|
||||
data = [];
|
||||
};
|
||||
|
||||
self.getCount = function () {
|
||||
return data.length
|
||||
}
|
||||
|
||||
return self;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue