@@ -7,6 +7,13 @@ local function view(data, config, modes, dir, units, labels, gpsDegMin, hdopGrap
77 local X_CNTR = (RIGHT_POS + LEFT_POS ) * 0.5 - 1
88 local gpsFlags = SMLSIZE + RIGHT + ((not data .telem or not data .gpsFix ) and FLASH or 0 )
99 local tmp , pitch
10+ local DEGSYM = data .etx and " °" or " @"
11+ local SHOWMAX = data .etx and CHAR_UP or " \192 "
12+ local SHOWMIN = data .etx and CHAR_DOWN or " \193 "
13+
14+ -- May not be right ....
15+ local SHOWLEFT = data .etx and CHAR_LEFT or " \194 "
16+ local SHOWRIGHT = data .etx and CHAR_RIGHT or " \195 "
1017
1118 -- Startup message
1219 if data .startup == 2 then
@@ -51,18 +58,18 @@ local function view(data, config, modes, dir, units, labels, gpsDegMin, hdopGrap
5158 end
5259 -- Pitch
5360 if data .startup == 0 then
54- text (LEFT_POS + 15 , 17 , pitch .. (math.abs (pitch ) < 10 and " \64 " or " " ), SMLSIZE + RIGHT + telemFlag )
61+ text (LEFT_POS + 15 , 17 , pitch .. (math.abs (pitch ) < 10 and DEGSYM or " " ), SMLSIZE + RIGHT + telemFlag )
5562 line (LEFT_POS + 1 , 17 , LEFT_POS + 1 , 24 , SOLID , ERASE )
5663 else
5764 text (LEFT_POS + 2 , 17 , " Ptch" , SMLSIZE )
5865 end
5966 elseif data .showDir or data .headingRef == - 1 then
6067 -- Heading
61- text (X_CNTR + 14 - (data .heading < 100 and 3 or 0 ) - (data .heading < 10 and 3 or 0 ), 57 , math.floor (data .heading + 0.5 ) % 360 .. " \64 " , SMLSIZE + RIGHT + telemFlag )
68+ text (X_CNTR + 14 - (data .heading < 100 and 3 or 0 ) - (data .heading < 10 and 3 or 0 ), 57 , math.floor (data .heading + 0.5 ) % 360 .. DEGSYM , SMLSIZE + RIGHT + telemFlag )
6269 end
6370 -- Min/Max
6471 if not data .showDir and data .showMax then
65- text (RIGHT_POS , 9 , " \192 " , SMLSIZE + RIGHT )
72+ text (RIGHT_POS , 9 , SHOWMAX , SMLSIZE + RIGHT )
6673 end
6774
6875 -- Radar
@@ -204,8 +211,8 @@ local function view(data, config, modes, dir, units, labels, gpsDegMin, hdopGrap
204211 text (LEFT_POS - tmp2 , 37 , tmp < 1000 and math.floor (tmp + 0.5 ) or frmt (" %.1f" , tmp / (data .dist_unit == 9 and 1000 or 5280 )), MIDSIZE + RIGHT + telemFlag )
205212 -- Pitch
206213 line (LEFT_DIV , 50 , LEFT_POS , 50 , SOLID , FORCE )
207- text (LEFT_DIV + 5 , 54 , pitch > 0 and " \194 " or (pitch == 0 and " ->" or " \195 " ), SMLSIZE )
208- text (LEFT_POS , 53 , " \64 " , SMLSIZE + RIGHT + telemFlag )
214+ text (LEFT_DIV + 5 , 54 , pitch > 0 and SHOWLEFT or (pitch == 0 and " ->" or SHOWRIGHT ), SMLSIZE )
215+ text (LEFT_POS , 53 , DEGSYM , SMLSIZE + RIGHT + telemFlag )
209216 text (LEFT_POS - 4 , 52 , pitch , MIDSIZE + RIGHT + telemFlag )
210217 end
211218end
0 commit comments