Skip to content

Commit

Permalink
add ToolTip for AirMode (#4206)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Terminology simplification and URL link

* Update locales/en/messages.json

Co-authored-by: Jan Post <[email protected]>

---------

Co-authored-by: Mark Haslinghuis <[email protected]>
Co-authored-by: Jan Post <[email protected]>
  • Loading branch information
3 people authored Oct 28, 2024
1 parent 1c30625 commit 36e5cf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
},
Expand Down Expand Up @@ -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 <a href=\"https://betaflight.com/docs/development/modes#airmode\" target=\"_blank\" rel=\"noopener noreferrer\">AirMode</a> on Betaflight.com.",
"description": "Help text to AIRMODE mode"
},
"auxiliaryHelpMode_ALTHOLD": {
Expand Down
2 changes: 1 addition & 1 deletion src/js/Features.js
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 36e5cf2

Please sign in to comment.