From adc3114b4078578a087466fb15e33907b0e1237d Mon Sep 17 00:00:00 2001 From: Jon Mahoney Date: Wed, 19 Oct 2022 22:15:27 -0400 Subject: Ready Mode Ready Mode allows the pilot to signal they are ready. Ideal for race lines so all pilots are ready to race. --- locales/en/messages.json | 7 +++++++ src/js/tabs/osd.js | 11 +++++++++++ 2 files changed, 18 insertions(+) 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 Dynamic Power 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, ]); } } -- cgit v1.2.3