added OSD support for flip arrow

10.5.x-maintenance
timman2er 2018-08-27 15:02:08 +02:00
parent 03174af2b8
commit 9bb283e2f5
2 changed files with 16 additions and 0 deletions

View File

@ -3487,6 +3487,9 @@
"osdDescElementCompassBar": {
"message": "Graphical compass bar showing current heading"
},
"osdDescElementFlipArrow": {
"message": "Arrow showing which side motors are up in turtle mode"
},
"osdDescElementTimer1" : {
"message": "Shows the value of timer 1"
},

View File

@ -809,6 +809,14 @@ OSD.constants = {
positionable: true,
preview: 'L16'
},
FLIP_ARROW: {
name: 'FLIP_ARROW',
desc: 'osdDescElementFlipArrow',
default_position: -1,
draw_order: 340,
positionable: true,
preview: FONT.symbol(SYM.ARROW_EAST)
},
},
UNKNOWN_DISPLAY_FIELD: {
name: 'UNKNOWN_',
@ -1032,6 +1040,11 @@ OSD.chooseFields = function () {
F.G_FORCE,
F.LOG_STATUS,
]);
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.FLIP_ARROW,
]);
}
}
}
}