diff --git a/build/script.js b/build/script.js index 5c97f5fe..f80ac9d4 100755 --- a/build/script.js +++ b/build/script.js @@ -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) { diff --git a/tabs/profiles.js b/tabs/profiles.js index 5f146ee4..3ee310fb 100644 --- a/tabs/profiles.js +++ b/tabs/profiles.js @@ -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) {