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:
commit
cb9a4fcdf6
2 changed files with 16 additions and 0 deletions
|
@ -3487,6 +3487,9 @@
|
||||||
"osdDescElementCompassBar": {
|
"osdDescElementCompassBar": {
|
||||||
"message": "Graphical compass bar showing current heading"
|
"message": "Graphical compass bar showing current heading"
|
||||||
},
|
},
|
||||||
|
"osdDescElementFlipArrow": {
|
||||||
|
"message": "Arrow showing which side motors are up in turtle mode"
|
||||||
|
},
|
||||||
"osdDescElementTimer1" : {
|
"osdDescElementTimer1" : {
|
||||||
"message": "Shows the value of timer 1"
|
"message": "Shows the value of timer 1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -809,6 +809,14 @@ OSD.constants = {
|
||||||
positionable: true,
|
positionable: true,
|
||||||
preview: 'L16'
|
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: {
|
UNKNOWN_DISPLAY_FIELD: {
|
||||||
name: 'UNKNOWN_',
|
name: 'UNKNOWN_',
|
||||||
|
@ -1032,6 +1040,11 @@ OSD.chooseFields = function () {
|
||||||
F.G_FORCE,
|
F.G_FORCE,
|
||||||
F.LOG_STATUS,
|
F.LOG_STATUS,
|
||||||
]);
|
]);
|
||||||
|
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
|
||||||
|
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
|
||||||
|
F.FLIP_ARROW,
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue