mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 01:35:28 +03:00
Fixed OSD element display, added missing elements.
This commit is contained in:
parent
5e9f34159c
commit
57cf08e0ce
2 changed files with 47 additions and 6 deletions
|
@ -3564,6 +3564,12 @@
|
||||||
"osdDescElementFlipArrow": {
|
"osdDescElementFlipArrow": {
|
||||||
"message": "Arrow showing which side motors are up in turtle mode"
|
"message": "Arrow showing which side motors are up in turtle mode"
|
||||||
},
|
},
|
||||||
|
"osdDescElementLinkQuality": {
|
||||||
|
"message": "Alternative indicator for 'link quality' based on frame loss - use with caution"
|
||||||
|
},
|
||||||
|
"osdDescElementTotalDist": {
|
||||||
|
"message": "Total distance flown during this flight."
|
||||||
|
},
|
||||||
"osdDescElementTimer1" : {
|
"osdDescElementTimer1" : {
|
||||||
"message": "Shows the value of timer 1"
|
"message": "Shows the value of timer 1"
|
||||||
},
|
},
|
||||||
|
@ -3585,6 +3591,9 @@
|
||||||
"osdDescGForce": {
|
"osdDescGForce": {
|
||||||
"message": "Shows how much G-Force the craft is experiencing"
|
"message": "Shows how much G-Force the craft is experiencing"
|
||||||
},
|
},
|
||||||
|
"osdDescElementMotorDiag": {
|
||||||
|
"message": "Shows a graph of the output of each motor"
|
||||||
|
},
|
||||||
"osdDescElementLogStatus": {
|
"osdDescElementLogStatus": {
|
||||||
"message": "Blackbox number and warnings"
|
"message": "Blackbox number and warnings"
|
||||||
},
|
},
|
||||||
|
|
|
@ -801,6 +801,17 @@ OSD.constants = {
|
||||||
positionable: true,
|
positionable: true,
|
||||||
preview: '1.0G'
|
preview: '1.0G'
|
||||||
},
|
},
|
||||||
|
MOTOR_DIAG: {
|
||||||
|
name: 'MOTOR_DIAG',
|
||||||
|
desc: 'osdDescElementMotorDiag',
|
||||||
|
default_position: -1,
|
||||||
|
draw_order: 325,
|
||||||
|
positionable: true,
|
||||||
|
preview: FONT.symbol(0x84)
|
||||||
|
+ FONT.symbol(0x85)
|
||||||
|
+ FONT.symbol(0x84)
|
||||||
|
+ FONT.symbol(0x83)
|
||||||
|
},
|
||||||
LOG_STATUS: {
|
LOG_STATUS: {
|
||||||
name: 'LOG_STATUS',
|
name: 'LOG_STATUS',
|
||||||
desc: 'osdDescElementLogStatus',
|
desc: 'osdDescElementLogStatus',
|
||||||
|
@ -817,6 +828,24 @@ OSD.constants = {
|
||||||
positionable: true,
|
positionable: true,
|
||||||
preview: FONT.symbol(SYM.ARROW_EAST)
|
preview: FONT.symbol(SYM.ARROW_EAST)
|
||||||
},
|
},
|
||||||
|
LINK_QUALITY: {
|
||||||
|
name: 'LINK_QUALITY',
|
||||||
|
desc: 'osdDescElementLinkQuality',
|
||||||
|
default_position: -1,
|
||||||
|
draw_order: 350,
|
||||||
|
positionable: true,
|
||||||
|
preview: '8'
|
||||||
|
},
|
||||||
|
TOTAL_DIST: {
|
||||||
|
name: 'TOTAL_DIST',
|
||||||
|
desc: 'osdDescElementTotalDist',
|
||||||
|
default_position: -1,
|
||||||
|
draw_order: 360,
|
||||||
|
positionable: true,
|
||||||
|
preview: function(osd_data) {
|
||||||
|
return '653' + FONT.symbol(osd_data.unit_mode === 0 ? SYM.FEET : SYM.METRE);
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
UNKNOWN_DISPLAY_FIELD: {
|
UNKNOWN_DISPLAY_FIELD: {
|
||||||
name: 'UNKNOWN_',
|
name: 'UNKNOWN_',
|
||||||
|
@ -1046,13 +1075,16 @@ OSD.chooseFields = function () {
|
||||||
if (semver.gte(CONFIG.apiVersion, "1.40.0")) {
|
if (semver.gte(CONFIG.apiVersion, "1.40.0")) {
|
||||||
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
|
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
|
||||||
F.G_FORCE,
|
F.G_FORCE,
|
||||||
F.LOG_STATUS,
|
]);
|
||||||
]);
|
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
|
||||||
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
|
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
|
||||||
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
|
F.MOTOR_DIAG,
|
||||||
F.FLIP_ARROW,
|
F.LOG_STATUS,
|
||||||
|
F.FLIP_ARROW,
|
||||||
|
F.LINK_QUALITY,
|
||||||
|
F.TOTAL_DIST,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue