From d286318f17c0d79eff49ef9a508b2b417bde0728 Mon Sep 17 00:00:00 2001 From: Darren Lines Date: Sat, 6 Feb 2021 10:53:53 +0000 Subject: [PATCH] Removed mc_ from airmode settings This change is to partner PR in the INAV firmware. It removes the mc_ prefix from the airmode CLI variables, as they are confusing, as there are now options that can also apply to fixed wing. --- _locales/en/messages.json | 12 ++++++------ js/defaults_dialog.js | 6 +++++- js/preset_definitions.js | 14 +++++++------- tabs/pid_tuning.html | 12 ++++++------ 4 files changed, 24 insertions(+), 20 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index b92a2bfb..b7ee4249 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -3511,17 +3511,17 @@ "iTermMechanics": { "message": "I-term mechanics" }, - "mc_airmode_type": { + "airmode_type": { "message": "Airmode handling type" }, - "mc_airmode_type_help": { - "message": "Defines the Airmode state handling type for Multirotors.
Default STICK_CENTER is the classical approach in which Airmode is always active if enabled, but when the throttle is low and ROLL/PITCH/YAW sticks are centered, Iterms is not allowed to grow (ANTI_WINDUP).
STICK_CENTER_ONCE works like STICK_CENTER, but only until the first time THROTTLE is not low and ROLL/PITCH/YAW sticks are moved. After that, ANTI_WINDUP is deactivated until next arm. Useful for airplanes.
THROTTLE_THRESHOLD is the Airmode behavior known from Betaflight. In this mode, Airmode is active as soon THROTTLE position is above mc_airmode_threshold and stays active until disarm. ANTI_WINDUP is never triggered. For small Multirotors (up to 7-inch propellers) it is suggested to switch to THROTTLE_THRESHOLD since it keeps full stabilization no matter what pilot does with the sticks. Airplanes default to STICK_CENTER mode." + "airmode_type_help": { + "message": "Defines the Airmode state handling type.
Default STICK_CENTER is the classical approach in which Airmode is always active if enabled, but when the throttle is low and ROLL/PITCH/YAW sticks are centered, Iterms is not allowed to grow (ANTI_WINDUP).
STICK_CENTER_ONCE works like STICK_CENTER, but only until the first time THROTTLE is not low and ROLL/PITCH/YAW sticks are moved. After that, ANTI_WINDUP is deactivated until next arm. Useful for airplanes.
THROTTLE_THRESHOLD is the Airmode behavior known from Betaflight. In this mode, Airmode is active as soon THROTTLE position is above airmode_throttle_threshold and stays active until disarm. ANTI_WINDUP is never triggered. For small Multirotors (up to 7-inch propellers) it is suggested to switch to THROTTLE_THRESHOLD since it keeps full stabilization no matter what pilot does with the sticks. Airplanes default to STICK_CENTER_ONCE mode." }, - "mc_airmode_threshold": { + "airmode_throttle_threshold": { "message": "Airmode Throttle threshold" }, - "mc_airmode_threshold_help": { - "message": "Defines airmode THROTTLE activation threshold when mc_airmode_type THROTTLE_THRESHOLD is used" + "airmode_throttle_threshold_help": { + "message": "Defines airmode THROTTLE activation threshold when airmode_type THROTTLE_THRESHOLD is used" }, "gps_map_center": { "message": "Center" diff --git a/js/defaults_dialog.js b/js/defaults_dialog.js index 7a248aa8..d58f866a 100644 --- a/js/defaults_dialog.js +++ b/js/defaults_dialog.js @@ -85,7 +85,7 @@ helper.defaultsDialog = (function() { Mechanics */ { - key: "mc_airmode_type", + key: "airmode_type", value: "THROTTLE_THRESHOLD" }, { @@ -272,6 +272,10 @@ helper.defaultsDialog = (function() { { key: "imu_acc_ignore_rate", value: 10 + }, + { + key: "airmode_type", + value: "STICK_CENTER_ONCE" } ], "features":[ diff --git a/js/preset_definitions.js b/js/preset_definitions.js index 06ada7f4..2253b8a5 100644 --- a/js/preset_definitions.js +++ b/js/preset_definitions.js @@ -174,7 +174,7 @@ presets.presets = [ value: 70 }, { - key: "mc_airmode_type", + key: "airmode_type", value: "THROTTLE_THRESHOLD" }, { @@ -324,7 +324,7 @@ presets.presets = [ value: 70 }, { - key: "mc_airmode_type", + key: "airmode_type", value: "THROTTLE_THRESHOLD" }, { @@ -482,7 +482,7 @@ presets.presets = [ value: 70 }, { - key: "mc_airmode_type", + key: "airmode_type", value: "THROTTLE_THRESHOLD" }, { @@ -645,7 +645,7 @@ presets.presets = [ value: 70 }, { - key: "mc_airmode_type", + key: "airmode_type", value: "THROTTLE_THRESHOLD" }, { @@ -815,7 +815,7 @@ presets.presets = [ value: 70 }, { - key: "mc_airmode_type", + key: "airmode_type", value: "THROTTLE_THRESHOLD" }, { @@ -973,7 +973,7 @@ presets.presets = [ value: 70 }, { - key: "mc_airmode_type", + key: "airmode_type", value: "THROTTLE_THRESHOLD" }, { @@ -1131,7 +1131,7 @@ presets.presets = [ value: 70 }, { - key: "mc_airmode_type", + key: "airmode_type", value: "THROTTLE_THRESHOLD" }, { diff --git a/tabs/pid_tuning.html b/tabs/pid_tuning.html index 0a1e8d43..4e44efd3 100755 --- a/tabs/pid_tuning.html +++ b/tabs/pid_tuning.html @@ -481,17 +481,17 @@ - + - +
- +
- +