diff --git a/js/defaults_dialog.js b/js/defaults_dialog.js index 0a57d701..9f9641b1 100644 --- a/js/defaults_dialog.js +++ b/js/defaults_dialog.js @@ -822,10 +822,6 @@ helper.defaultsDialog = (function () { key: "nav_fw_launch_climb_angle", value: 25 }, - { - key: "motorstop_on_low", - value: "ON" - }, ], }, { @@ -1039,10 +1035,6 @@ helper.defaultsDialog = (function () { key: "nav_fw_launch_climb_angle", value: 25 }, - { - key: "motorstop_on_low", - value: "ON" - }, ], }, { @@ -1201,6 +1193,7 @@ helper.defaultsDialog = (function () { MIXER_CONFIG.platformType = currentMixerPreset.platform; MIXER_CONFIG.appliedMixerPreset = selectedDefaultPreset.mixerToApply; + MIXER_CONFIG.motorStopOnLow = (currentMixerPreset.motorStopOnLow === true) ? true : false; MIXER_CONFIG.hasFlaps = (currentMixerPreset.hasFlaps === true) ? true : false; SERVO_RULES.cleanup(); diff --git a/js/model.js b/js/model.js index 806140b1..aaeafd7a 100644 --- a/js/model.js +++ b/js/model.js @@ -350,6 +350,7 @@ const mixerList = [ enabled: true, legacy: true, platform: PLATFORM_AIRPLANE, + motorStopOnLow: true, motorMixer: [ new MotorMixRule(1.0, 0.0, 0.0, 0.0), ], @@ -373,6 +374,7 @@ const mixerList = [ enabled: true, legacy: false, platform: PLATFORM_AIRPLANE, + motorStopOnLow: true, motorMixer: [ new MotorMixRule(1.0, 0.0, 0.0, 0.1), new MotorMixRule(1.0, 0.0, 0.0, -0.1) @@ -399,6 +401,7 @@ const mixerList = [ enabled: true, legacy: true, platform: PLATFORM_AIRPLANE, + motorStopOnLow: true, hasFlaps: true, motorMixer: [ new MotorMixRule(1.0, 0.0, 0.0, 0.0), @@ -427,6 +430,7 @@ const mixerList = [ enabled: true, legacy: false, platform: PLATFORM_AIRPLANE, + motorStopOnLow: true, hasFlaps: true, motorMixer: [ new MotorMixRule(1.0, 0.0, 0.0, 0.3), @@ -456,6 +460,7 @@ const mixerList = [ enabled: true, legacy: false, platform: PLATFORM_AIRPLANE, + motorStopOnLow: true, hasFlaps: true, motorMixer: [ new MotorMixRule(1.0, 0.0, 0.0, 0.0), @@ -486,6 +491,7 @@ const mixerList = [ enabled: true, legacy: false, platform: PLATFORM_AIRPLANE, + motorStopOnLow: true, hasFlaps: true, motorMixer: [ new MotorMixRule(1.0, 0.0, 0.0, 0.3), @@ -516,6 +522,7 @@ const mixerList = [ enabled: true, legacy: false, platform: PLATFORM_AIRPLANE, + motorStopOnLow: true, motorMixer: [ new MotorMixRule(1.0, 0.0, 0.0, 0.0), ], @@ -542,6 +549,7 @@ const mixerList = [ legacy: false, platform: PLATFORM_AIRPLANE, hasFlaps: true, + motorStopOnLow: true, motorMixer: [ new MotorMixRule(1.0, 0.0, 0.0, 0.0), ], @@ -568,6 +576,7 @@ const mixerList = [ enabled: false, legacy: true, platform: PLATFORM_AIRPLANE, + motorStopOnLow: true, motorMixer: [], servoMixer: [] }, // 24