1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Add vario units to the preview

This commit is contained in:
Miguel Angel Mulero Martinez 2019-06-12 16:41:07 +02:00
parent ac798c9813
commit 71d20cd99e

View file

@ -23,6 +23,8 @@ SYM.loadSymbols = function() {
SYM.FEET = 0xF;
SYM.KPH = 0x9E;
SYM.MPH = 0x9D;
SYM.MPS = 0x9F;
SYM.FTPS = 0x99;
SYM.SPEED = 0x70;
SYM.TOTAL_DIST = 0x71;
SYM.GPS_SAT_L = 0x1E;
@ -840,7 +842,9 @@ OSD.constants = {
default_position: -1,
draw_order: 300,
positionable: true,
preview: FONT.symbol(SYM.ARROW_NORTH) + '8.7'
preview: function (osd_data) {
return FONT.symbol(SYM.ARROW_NORTH) + '8.7' + (osd_data.unit_mode === 0 ? FONT.symbol(SYM.FTPS) : FONT.symbol(SYM.MPS));
}
},
COMPASS_BAR: {
name: 'COMPASS_BAR',