diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 55970dee2..6e1a30394 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -3606,6 +3606,12 @@ "osdSettingCRSF_LQ_FORMAT_HELP": { "message": "TYPE1 shows LQ% as used by TBS hardware. TYPE2 shows RF Profile Modes (2=150Hz, 1=50Hz, 0=4Hz update rates) and LQ % [0..100%]. Tracer shows RFMode 1 (1=250Hz) and LQ % [0..100%]." }, + "osd_video_show_guides": { + "message": "Show preview guides" + }, + "osd_video_HELP": { + "message": "For HD: red lines show 4:3 screen, HDZero: keep within the blue box for a higher refresh rate, AUTO/PAL: green line is NTSC limit." + }, "osd_dji_HD_FPV": { "message" : "DJI HD FPV" }, diff --git a/js/msp/MSPHelper.js b/js/msp/MSPHelper.js index 01b5789d0..ec9b976d8 100644 --- a/js/msp/MSPHelper.js +++ b/js/msp/MSPHelper.js @@ -477,9 +477,9 @@ var mspHelper = (function (gui) { data.getInt8(i + 13) )); } - } + } break; - + case MSPCodes.MSP2_INAV_LOGIC_CONDITIONS_SINGLE: LOGIC_CONDITIONS.put(new LogicCondition( data.getInt8(0), @@ -788,7 +788,7 @@ var mspHelper = (function (gui) { } CONFIG.target = targetName; } - + break; case MSPCodes.MSP_SET_CHANNEL_FORWARDING: @@ -2282,8 +2282,8 @@ var mspHelper = (function (gui) { } }; - self.loadLogicConditions = function (callback) { - if (semver.gte(CONFIG.flightControllerVersion, "5.0.0")) { + self.loadLogicConditions = function (callback) { + if (semver.gte(CONFIG.flightControllerVersion, "5.0.0")) { LOGIC_CONDITIONS.flush(); let idx = 0; MSP.send_message(MSPCodes.MSP2_INAV_LOGIC_CONDITIONS_SINGLE, [idx], false, nextLogicCondition); diff --git a/src/css/tabs/osd.css b/src/css/tabs/osd.css index 89db9aeff..58eab9d1d 100644 --- a/src/css/tabs/osd.css +++ b/src/css/tabs/osd.css @@ -430,29 +430,92 @@ button { left: calc(50% - 197px); } -.tab-osd .preview_hd { +.tab-osd .preview_hdzero { width: 600px !important; left: calc(50% - 317px) !important; } -.tab-osd .hd_43_left { - border-left: 1px solid red; +.tab-osd .hdzero_43_left { + border-left: 2px solid red; position: absolute; left: 60px; height: calc(100% - 27px); } -.tab-osd .hd_43_right { - border-right: 1px solid red; +.tab-osd .hdzero_43_right { + border-right: 2px solid red; position: absolute; right: 60px; height: calc(100% - 27px); } -.tab-osd .preview_hd_side { +.tab-osd .preview_hdzero_side { width: calc(50% - 317px) !important; } +.tab-osd .preview_dji_hd { + width: 720px !important; + left: calc(50% - 377px) !important; +} + +.tab-osd .dji_hd_43_left { + border-left: 2px solid red; + position: absolute; + left: 84px; + height: calc(100% - 27px); +} + +.tab-osd .dji_hd_43_right { + border-right: 2px solid red; + position: absolute; + right: 84px; + height: calc(100% - 27px); +} + +.tab-osd .preview_dji_hd_side { + width: calc(50% - 377px) !important; +} + +.tab-osd .hd_3016_top { + border-top: 2px solid blue; + position: absolute; + top: 46px; + left: 120px; + width: 360px; +} + +.tab-osd .hd_3016_bottom { + border-bottom: 2px solid blue; + position: absolute; + bottom: 18px; + left: 120px; + width: 360px; +} + +.tab-osd .hd_3016_left { + border-left: 2px solid blue; + position: absolute; + top: 46px; + left: 120px; + height: 288px; +} + +.tab-osd .hd_3016_right { + border-right: 2px solid blue; + position: absolute; + top: 46px; + right: 120px; + height: 288px; +} + +.tab-osd .ntsc_bottom { + border-bottom: 2px solid green; + position: absolute; + bottom: 54px; + left: 0px; + width: 100%; +} + .tab-osd .preview { /* please don't copy the generic background image from another project * and replace the one that @nathantsoi took :) @@ -538,7 +601,7 @@ button { } .tab-osd .settings select, -.tab-osd .settings input, +.tab-osd .settings input, .tab-osd .osd_settings .switchery, .tab-osd .unit_wrapper { vertical-align: top; diff --git a/tabs/osd.html b/tabs/osd.html index 389ded66b..a11ab3da3 100644 --- a/tabs/osd.html +++ b/tabs/osd.html @@ -31,10 +31,14 @@

-
-
-
-
+
+
+
+
+
+
+
+
@@ -46,6 +50,12 @@

+
+
+ +
@@ -82,12 +92,12 @@

-
+
@@ -231,7 +241,7 @@

-
+