mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 09:15:49 +03:00
Merge pull request #1081 from atomgomba/feature-osd-log-status-element
Support for OSD blackbox logging status element
This commit is contained in:
commit
6b5a183c6b
2 changed files with 18 additions and 5 deletions
|
@ -3508,6 +3508,10 @@
|
|||
"osdDescGForce": {
|
||||
"message": "Shows how much G-Force the craft is experiencing"
|
||||
},
|
||||
"osdDescElementLogStatus": {
|
||||
"message": "Blackbox number and warnings"
|
||||
},
|
||||
|
||||
"osdDescStatMaxSpeed": {
|
||||
"message": "Maximum recorded speed"
|
||||
},
|
||||
|
|
|
@ -800,7 +800,15 @@ OSD.constants = {
|
|||
draw_order: 15,
|
||||
positionable: true,
|
||||
preview: '1.0G'
|
||||
}
|
||||
},
|
||||
LOG_STATUS: {
|
||||
name: 'LOG_STATUS',
|
||||
desc: 'osdDescElementLogStatus',
|
||||
default_position: -1,
|
||||
draw_order: 330,
|
||||
positionable: true,
|
||||
preview: 'L16'
|
||||
},
|
||||
},
|
||||
UNKNOWN_DISPLAY_FIELD: {
|
||||
name: 'UNKNOWN_',
|
||||
|
@ -1021,7 +1029,8 @@ OSD.chooseFields = function () {
|
|||
]);
|
||||
if (semver.gte(CONFIG.apiVersion, "1.40.0")) {
|
||||
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
|
||||
F.G_FORCE
|
||||
F.G_FORCE,
|
||||
F.LOG_STATUS,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue