1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 04:15:28 +03:00

Output mapping in mixer tab

This commit is contained in:
Pawel Spychalski (DzikuVx) 2018-06-02 17:38:37 +02:00
parent 83bd7ac67f
commit b099f68281
5 changed files with 140 additions and 1 deletions

View file

@ -24,6 +24,23 @@ let OutputMappingCollection = function () {
data.push(element);
};
self.getOutputCount = function () {
let retVal = 0;
for (let i = 0; i < data.length; i++) {
if (
bit_check(data[i], TIM_USE_MC_MOTOR) ||
bit_check(data[i], TIM_USE_MC_SERVO) ||
bit_check(data[i], TIM_USE_FW_MOTOR) ||
bit_check(data[i], TIM_USE_FW_SERVO)
) {
retVal++;
};
}
return retVal;
}
function getFirstOutputOffset() {
for (let i = 0; i < data.length; i++) {
if (