Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/betaflight/betaflight-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaslinghuis <mark@numloq.nl>2022-10-25 03:40:52 +0300
committerGitHub <noreply@github.com>2022-10-25 03:40:52 +0300
commitce90b0faa76fd0d0f2eb54cfd2840c50093122dd (patch)
tree5fb128a4518f105bc27dbcd981e69da858c29518
parent75c6ab1b49d4925943d8e2b5fb8d72a16ef5e00e (diff)
parentadc3114b4078578a087466fb15e33907b0e1237d (diff)
Merge pull request #3054 from jonmahoney15/ready-mode-osd-element
Ready Mode
-rw-r--r--locales/en/messages.json7
-rw-r--r--src/js/tabs/osd.js11
2 files changed, 18 insertions, 0 deletions
diff --git a/locales/en/messages.json b/locales/en/messages.json
index 083956ee..05025a1d 100644
--- a/locales/en/messages.json
+++ b/locales/en/messages.json
@@ -5412,6 +5412,13 @@
"osdDescTxUplinkPower": {
"message": "Shows a value of the Tx power (mW or W). Useful when <i>Dynamic Power</i> is enabled for supporting radios"
},
+ "osdTextElementReadyMode": {
+ "message": "Ready Mode",
+ "description": "When active READY will be displayed until flying"
+ },
+ "osdDescElementReadyMode": {
+ "message": "When active READY will be displayed until flying"
+ },
"osdTextElementUnknown": {
"message": "Unknown $1",
"description": "One of the elements of the OSD"
diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js
index 558682be..35f384ea 100644
--- a/src/js/tabs/osd.js
+++ b/src/js/tabs/osd.js
@@ -938,6 +938,15 @@ OSD.loadDisplayFields = function() {
positionable: true,
preview: `${FONT.symbol(SYM.PITCH)}-00.0`,
},
+ READY_MODE: {
+ name: 'READY_MODE',
+ text: 'osdTextElementReadyMode',
+ desc: 'osdDescElementReadyMode',
+ defaultPosition: -1,
+ draw_order: 255,
+ positionable: true,
+ preview: 'READY',
+ },
ROLL_ANGLE: {
name: 'ROLL_ANGLE',
text: 'osdTextElementRollAngle',
@@ -1663,6 +1672,7 @@ OSD.chooseFields = function() {
F.GPS_SATS,
F.ALTITUDE,
]);
+
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_31)) {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.PID_ROLL,
@@ -1748,6 +1758,7 @@ OSD.chooseFields = function() {
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_45)) {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.WH_DRAWN,
+ F.READY_MODE,
]);
}
}