Merge pull request #379 from shellixyz/add_osd_trip_dist

Add OSD trip distance item and font icon
pull/385/head
Konstantin Sharlaimov 7 years ago committed by GitHub
commit 38873c141d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2358,6 +2358,9 @@
"osdElement_GPS_HDOP_HELP": {
"message": "Shows the Horizontal Dilution Of Precission from the GPS. The lower, the most accurate the GPS fix is."
},
"osdElement_TRIP_DIST": {
"message": "Trip distance"
},
"osdElement_VARIO_HELP": {
"message": "Shows vertical speed using up or down arrows. Each arrow represents 10cm (~4 inches) per second."
},

@ -2179,49 +2179,49 @@ MAX7456
01010101
01010101
01010101
00010101
01010101
01010100
10000001
01010101
01010010
10001000
00010101
01001010
10101010
10000101
01010010
10001000
10100001
01010100
10000001
00100001
01010101
00010100
00100001
01010101
01010010
10100001
01010100
00001010
00000101
01010010
10101000
01010101
01010010
00000001
01010101
01010010
00000001
01010101
01010010
10101000
01010101
01010100
00001010
00010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010000
01010101
01010101
01010101

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

@ -2179,49 +2179,49 @@ MAX7456
01010101
01010101
01010101
00010101
01010101
01010100
10000001
01010101
01010010
10001000
00010101
01001010
10101010
10000101
01010010
10001000
10100001
01010100
10000001
00100001
01010101
00010100
00100001
01010101
01010010
10100001
01010100
00001010
00000101
01010010
10101000
01010101
01010010
00000001
01010101
01010010
00000001
01010101
01010010
10101000
01010101
01010100
00001010
00010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010000
01010101
01010101
01010101

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

@ -2179,49 +2179,49 @@ MAX7456
01010101
01010101
01010101
00010101
01010101
01010100
10000001
01010101
01010010
10001000
00010101
01001010
10101010
10000101
01010010
10001000
10100001
01010100
10000001
00100001
01010101
00010100
00100001
01010101
01010010
10100001
01010100
00001010
00000101
01010010
10101000
01010101
01010010
00000001
01010101
01010010
00000001
01010101
01010010
10101000
01010101
01010100
00001010
00010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010101
01010000
01010101
01010101
01010101

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

@ -36,6 +36,7 @@ SYM.AIR = 151;
SYM.DIR_TO_HOME = 0x60;
SYM.DIST_KM = 182;
SYM.DIST_MI = 184;
SYM.TRIP_DIST = 0x22;
SYM.HEADING1 = 0xA9;
SYM.HEADING2 = 0xA8;
SYM.HEADING_N = 24;
@ -668,6 +669,18 @@ OSD.constants = {
return FONT.symbol(SYM.DIST_KM) + FONT.embed_dot('1.73');
}
},
{
name: 'TRIP_DIST',
id: 40,
min_version: '1.9.1',
preview: function(osd_data) {
if (OSD.data.unit_mode === 0) {
// Imperial
return FONT.symbol(SYM.TRIP_DIST) + FONT.symbol(SYM.DIST_MI) + FONT.embed_dot('0.98');
}
return FONT.symbol(SYM.TRIP_DIST) + FONT.symbol(SYM.DIST_KM) + FONT.embed_dot('1.73');
}
},
{
name: 'GPS_HDOP',
id: 31,

Loading…
Cancel
Save