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:
parent
83bd7ac67f
commit
b099f68281
5 changed files with 140 additions and 1 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue