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

Merge pull request #225 from fiam/fw_motorstop_airmode

Set MOTOR_STOP and AIRMODE features in all FW presets
This commit is contained in:
Konstantin Sharlaimov 2017-09-09 13:27:11 +10:00 committed by GitHub
commit 06d6f40aee
2 changed files with 18 additions and 0 deletions

View file

@ -21635,6 +21635,15 @@ presets.model = (function () {
}
}
if (mixerType == 'airplane' || mixerType == 'flyingwing') {
// Always set MOTOR_STOP and feature AIRMODE for fixed wing
window.BF_CONFIG.features |= 1 << 4; // MOTOR_STOP
if (semver.gt(CONFIG.flightControllerVersion, '1.7.2')) {
// Note that feature_AIRMODE is only supported on
// INAV > 1.7.2.
window.BF_CONFIG.features |= 1 << 22; // AIRMODE
}
}
};
self.extractPresetNames = function (presets) {

View file

@ -406,6 +406,15 @@ presets.model = (function () {
}
}
if (mixerType == 'airplane' || mixerType == 'flyingwing') {
// Always set MOTOR_STOP and feature AIRMODE for fixed wing
window.BF_CONFIG.features |= 1 << 4; // MOTOR_STOP
if (semver.gt(CONFIG.flightControllerVersion, '1.7.2')) {
// Note that feature_AIRMODE is only supported on
// INAV > 1.7.2.
window.BF_CONFIG.features |= 1 << 22; // AIRMODE
}
}
};
self.extractPresetNames = function (presets) {