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:
commit
06d6f40aee
2 changed files with 18 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue