diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 9df51c71..94dff464 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -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." }, diff --git a/resources/osd/bold.mcm b/resources/osd/bold.mcm index fb0031e6..af1a92a1 100644 --- a/resources/osd/bold.mcm +++ b/resources/osd/bold.mcm @@ -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 diff --git a/resources/osd/bold/34.png b/resources/osd/bold/34.png new file mode 100644 index 00000000..a146a468 Binary files /dev/null and b/resources/osd/bold/34.png differ diff --git a/resources/osd/default.mcm b/resources/osd/default.mcm index a6f338ac..cc960007 100644 --- a/resources/osd/default.mcm +++ b/resources/osd/default.mcm @@ -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 diff --git a/resources/osd/default/34.png b/resources/osd/default/34.png new file mode 100644 index 00000000..a146a468 Binary files /dev/null and b/resources/osd/default/34.png differ diff --git a/resources/osd/large.mcm b/resources/osd/large.mcm index 709ac509..eda6f56f 100644 --- a/resources/osd/large.mcm +++ b/resources/osd/large.mcm @@ -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 diff --git a/resources/osd/large/34.png b/resources/osd/large/34.png new file mode 100644 index 00000000..a146a468 Binary files /dev/null and b/resources/osd/large/34.png differ diff --git a/tabs/osd.js b/tabs/osd.js index 4aa314e8..26fb03b3 100644 --- a/tabs/osd.js +++ b/tabs/osd.js @@ -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,