1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 11:59:51 +03:00

fix motor stop on low preset

This commit is contained in:
shota 2023-10-21 00:51:50 +09:00
parent e1c217f0d0
commit 31d05169d4
2 changed files with 10 additions and 8 deletions

View file

@ -822,10 +822,6 @@ helper.defaultsDialog = (function () {
key: "nav_fw_launch_climb_angle", key: "nav_fw_launch_climb_angle",
value: 25 value: 25
}, },
{
key: "motorstop_on_low",
value: "ON"
},
], ],
}, },
{ {
@ -1039,10 +1035,6 @@ helper.defaultsDialog = (function () {
key: "nav_fw_launch_climb_angle", key: "nav_fw_launch_climb_angle",
value: 25 value: 25
}, },
{
key: "motorstop_on_low",
value: "ON"
},
], ],
}, },
{ {
@ -1201,6 +1193,7 @@ helper.defaultsDialog = (function () {
MIXER_CONFIG.platformType = currentMixerPreset.platform; MIXER_CONFIG.platformType = currentMixerPreset.platform;
MIXER_CONFIG.appliedMixerPreset = selectedDefaultPreset.mixerToApply; MIXER_CONFIG.appliedMixerPreset = selectedDefaultPreset.mixerToApply;
MIXER_CONFIG.motorStopOnLow = (currentMixerPreset.motorStopOnLow === true) ? true : false;
MIXER_CONFIG.hasFlaps = (currentMixerPreset.hasFlaps === true) ? true : false; MIXER_CONFIG.hasFlaps = (currentMixerPreset.hasFlaps === true) ? true : false;
SERVO_RULES.cleanup(); SERVO_RULES.cleanup();

View file

@ -350,6 +350,7 @@ const mixerList = [
enabled: true, enabled: true,
legacy: true, legacy: true,
platform: PLATFORM_AIRPLANE, platform: PLATFORM_AIRPLANE,
motorStopOnLow: true,
motorMixer: [ motorMixer: [
new MotorMixRule(1.0, 0.0, 0.0, 0.0), new MotorMixRule(1.0, 0.0, 0.0, 0.0),
], ],
@ -373,6 +374,7 @@ const mixerList = [
enabled: true, enabled: true,
legacy: false, legacy: false,
platform: PLATFORM_AIRPLANE, platform: PLATFORM_AIRPLANE,
motorStopOnLow: true,
motorMixer: [ motorMixer: [
new MotorMixRule(1.0, 0.0, 0.0, 0.1), new MotorMixRule(1.0, 0.0, 0.0, 0.1),
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, enabled: true,
legacy: true, legacy: true,
platform: PLATFORM_AIRPLANE, platform: PLATFORM_AIRPLANE,
motorStopOnLow: true,
hasFlaps: true, hasFlaps: true,
motorMixer: [ motorMixer: [
new MotorMixRule(1.0, 0.0, 0.0, 0.0), new MotorMixRule(1.0, 0.0, 0.0, 0.0),
@ -427,6 +430,7 @@ const mixerList = [
enabled: true, enabled: true,
legacy: false, legacy: false,
platform: PLATFORM_AIRPLANE, platform: PLATFORM_AIRPLANE,
motorStopOnLow: true,
hasFlaps: true, hasFlaps: true,
motorMixer: [ motorMixer: [
new MotorMixRule(1.0, 0.0, 0.0, 0.3), new MotorMixRule(1.0, 0.0, 0.0, 0.3),
@ -456,6 +460,7 @@ const mixerList = [
enabled: true, enabled: true,
legacy: false, legacy: false,
platform: PLATFORM_AIRPLANE, platform: PLATFORM_AIRPLANE,
motorStopOnLow: true,
hasFlaps: true, hasFlaps: true,
motorMixer: [ motorMixer: [
new MotorMixRule(1.0, 0.0, 0.0, 0.0), new MotorMixRule(1.0, 0.0, 0.0, 0.0),
@ -486,6 +491,7 @@ const mixerList = [
enabled: true, enabled: true,
legacy: false, legacy: false,
platform: PLATFORM_AIRPLANE, platform: PLATFORM_AIRPLANE,
motorStopOnLow: true,
hasFlaps: true, hasFlaps: true,
motorMixer: [ motorMixer: [
new MotorMixRule(1.0, 0.0, 0.0, 0.3), new MotorMixRule(1.0, 0.0, 0.0, 0.3),
@ -516,6 +522,7 @@ const mixerList = [
enabled: true, enabled: true,
legacy: false, legacy: false,
platform: PLATFORM_AIRPLANE, platform: PLATFORM_AIRPLANE,
motorStopOnLow: true,
motorMixer: [ motorMixer: [
new MotorMixRule(1.0, 0.0, 0.0, 0.0), new MotorMixRule(1.0, 0.0, 0.0, 0.0),
], ],
@ -542,6 +549,7 @@ const mixerList = [
legacy: false, legacy: false,
platform: PLATFORM_AIRPLANE, platform: PLATFORM_AIRPLANE,
hasFlaps: true, hasFlaps: true,
motorStopOnLow: true,
motorMixer: [ motorMixer: [
new MotorMixRule(1.0, 0.0, 0.0, 0.0), new MotorMixRule(1.0, 0.0, 0.0, 0.0),
], ],
@ -568,6 +576,7 @@ const mixerList = [
enabled: false, enabled: false,
legacy: true, legacy: true,
platform: PLATFORM_AIRPLANE, platform: PLATFORM_AIRPLANE,
motorStopOnLow: true,
motorMixer: [], motorMixer: [],
servoMixer: [] servoMixer: []
}, // 24 }, // 24