1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Merge pull request #1019 from McGiverGim/fix_osd_sizes

Adjust some OSD fields length
This commit is contained in:
Michael Keller 2018-05-12 12:11:36 +12:00 committed by GitHub
commit 247c9f4706
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -488,7 +488,7 @@ OSD.constants = {
draw_order: 160, draw_order: 160,
positionable: true, positionable: true,
preview: function(osd_data) { preview: function(osd_data) {
return '399.7' + FONT.symbol(osd_data.unit_mode === 0 ? SYM.FEET : SYM.METRE) return ' 399.7' + FONT.symbol(osd_data.unit_mode === 0 ? SYM.FEET : SYM.METRE);
} }
}, },
ONTIME: { ONTIME: {
@ -535,7 +535,7 @@ OSD.constants = {
default_position: -1, default_position: -1,
draw_order: 350, draw_order: 350,
positionable: true, positionable: true,
preview: FONT.symbol(SYM.ARROW_SOUTH) + '00.00000000' preview: FONT.symbol(SYM.ARROW_EAST) + '-000.0000000'
}, },
GPS_LAT: { GPS_LAT: {
name: 'GPS_LAT', name: 'GPS_LAT',
@ -543,7 +543,7 @@ OSD.constants = {
default_position: -1, default_position: -1,
draw_order: 340, draw_order: 340,
positionable: true, positionable: true,
preview: FONT.symbol(SYM.ARROW_EAST) + '00.00000000' preview: FONT.symbol(SYM.ARROW_NORTH) + '-00.0000000 '
}, },
DEBUG: { DEBUG: {
name: 'DEBUG', name: 'DEBUG',
@ -656,7 +656,7 @@ OSD.constants = {
draw_order: 360, draw_order: 360,
positionable: true, positionable: true,
preview: function(osd_data) { preview: function(osd_data) {
return '43' + FONT.symbol(osd_data.unit_mode === 0 ? SYM.FEET : SYM.METRE) return '43' + FONT.symbol(osd_data.unit_mode === 0 ? SYM.FEET : SYM.METRE) + (semver.gte(CONFIG.apiVersion, "1.37.0")?' ':'');
} }
}, },
NUMERICAL_HEADING: { NUMERICAL_HEADING: {