diff options
author | Jon Mahoney <jonmahoney15@yahoo.com> | 2022-10-20 05:15:27 +0300 |
---|---|---|
committer | Jon Mahoney <jonmahoney15@yahoo.com> | 2022-10-20 05:15:27 +0300 |
commit | adc3114b4078578a087466fb15e33907b0e1237d (patch) | |
tree | 741ee05bbd30288b2471c6422a54c48d9fa2ea20 | |
parent | a49a6b98ba926bd08298f640ae5b1617a665a36c (diff) |
Ready Mode
Ready Mode allows the pilot to signal they are ready. Ideal for race
lines so all pilots are ready to race.
-rw-r--r-- | locales/en/messages.json | 7 | ||||
-rw-r--r-- | src/js/tabs/osd.js | 11 |
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, ]); } } |