Merge pull request #225 from fiam/fw_motorstop_airmode

Set MOTOR_STOP and AIRMODE features in all FW presets
pull/244/head
Konstantin Sharlaimov 7 years ago committed by GitHub
commit 06d6f40aee

@ -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…
Cancel
Save