Merge branch 'master' of https://github.com/betaflight/betaflight-configurator
commit
1228562073
18
tabs/osd.js
18
tabs/osd.js
|
@ -454,6 +454,20 @@ OSD.constants = {
|
|||
default_position: -1,
|
||||
positionable: true,
|
||||
preview: FONT.symbol(SYM.FLY_M) + '02:07'
|
||||
},
|
||||
HOME_DIR: {
|
||||
name: 'HOME_DIRECTION',
|
||||
default_position: -1,
|
||||
positionable: true,
|
||||
preview: FONT.symbol(SYM.ARROW_SOUTH + 2)
|
||||
},
|
||||
HOME_DIST: {
|
||||
name: 'HOME_DISTANCE',
|
||||
default_position: -1,
|
||||
positionable: true,
|
||||
preview: function(osd_data) {
|
||||
return '43' + FONT.symbol(osd_data.unit_mode === 0 ? SYM.FEET : SYM.METRE)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -542,7 +556,9 @@ OSD.chooseFields = function () {
|
|||
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
|
||||
F.MAIN_BATT_USAGE,
|
||||
F.ARMED_TIME,
|
||||
F.DISARMED
|
||||
F.DISARMED,
|
||||
F.HOME_DIR,
|
||||
F.HOME_DIST
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue