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

Merge pull request #1182 from timman2er/osd_flip_arrow

added support for OSD flip arrow
This commit is contained in:
Michael Keller 2018-08-28 22:36:39 +12:00 committed by GitHub
commit cb9a4fcdf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,
]);
}
}
}
}