From 36e5cf22d8bf513b618ae724fdfa0dd9ffbf7798 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Mon, 28 Oct 2024 10:31:49 -0500 Subject: [PATCH] add ToolTip for AirMode (#4206) * add ToolTip for AirMode * verbiage changes as requested; plus code re-use * reverse variables; this should retain feature verbiage for non-english until translated. Co-authored-by: Mark Haslinghuis * Terminology simplification and URL link * Update locales/en/messages.json Co-authored-by: Jan Post --------- Co-authored-by: Mark Haslinghuis Co-authored-by: Jan Post --- locales/en/messages.json | 5 ++++- src/js/Features.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index 70ae920deb..48fdbd6d97 100755 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -1323,6 +1323,9 @@ "featureAIRMODE": { "message": "Permanently enable Airmode" }, + "featureAIRMODETip": { + "message": "$t(auxiliaryHelpMode_AIRMODE.message)" + }, "featureRX_SPI": { "message": "SPI Rx (e.g. built-in Rx)" }, @@ -2408,7 +2411,7 @@ "description": "Help text to ANTIGRAVITY mode" }, "auxiliaryHelpMode_AIRMODE": { - "message": "In the standard mixer / mode, when the roll, pitch and yaw gets calculated and saturates a motor, all motors will be reduced equally. When a motor goes below minimum it gets clipped off. Say you had your throttle just above minimum and tried to pull a quick roll - since two motors can't go any lower, you essentially get half the power (half of your PID gain). If your inputs would have asked for more than a 100% difference between the high and low motors, the low motors would get clipped, breaking the symmetry of the motor balance by unevenly reducing the gain", + "message": "AirMode allows for maintaining drone stability at low throttle. For more information please see AirMode on Betaflight.com.", "description": "Help text to AIRMODE mode" }, "auxiliaryHelpMode_ALTHOLD": { diff --git a/src/js/Features.js b/src/js/Features.js index f181e7220f..ed3cdc4779 100644 --- a/src/js/Features.js +++ b/src/js/Features.js @@ -26,7 +26,7 @@ const Features = function (config) { {bit: 18, group: 'other', name: 'OSD', haveTip: true, dependsOn: 'OSD'}, {bit: 20, group: 'other', name: 'CHANNEL_FORWARDING', dependsOn: 'SERVOS'}, {bit: 21, group: 'other', name: 'TRANSPONDER', haveTip: true, dependsOn: 'TRANSPONDER'}, - {bit: 22, group: 'other', name: 'AIRMODE'}, + {bit: 22, group: 'other', name: 'AIRMODE', haveTip: true}, {bit: 25, group: 'rxMode', mode: 'select', name: 'RX_SPI'}, {bit: 27, group: 'escSensor', name: 'ESC_SENSOR'}, {bit: 28, group: 'antiGravity', name: 'ANTI_GRAVITY', haveTip: true, hideName: true},