Merge pull request #1248 from mikeller/fix_osd_elements
Fixed OSD element display, added missing elements.10.5.x-maintenance
commit
b971365428
|
@ -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"
|
||||||
|
},
|
||||||
|
"osdDescElementFlightDist": {
|
||||||
|
"message": "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"
|
||||||
},
|
},
|
||||||
|
@ -3646,6 +3655,12 @@
|
||||||
"osdDescStatEscRpm": {
|
"osdDescStatEscRpm": {
|
||||||
"message": "Max ESC RPM"
|
"message": "Max ESC RPM"
|
||||||
},
|
},
|
||||||
|
"osdDescStatMinLinkQuality": {
|
||||||
|
"message": "Minimum of the alternative indicator for 'link quality' based on frame loss"
|
||||||
|
},
|
||||||
|
"osdDescStatFlightDistance": {
|
||||||
|
"message": "Total distance travelled during the flight"
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
"osdTimerSource": {
|
"osdTimerSource": {
|
||||||
|
|
|
@ -801,6 +801,17 @@ OSD.constants = {
|
||||||
positionable: true,
|
positionable: true,
|
||||||
preview: '1.0G'
|
preview: '1.0G'
|
||||||
},
|
},
|
||||||
|
MOTOR_DIAG: {
|
||||||
|
name: 'MOTOR_DIAGNOSTICS',
|
||||||
|
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'
|
||||||
|
},
|
||||||
|
FLIGHT_DIST: {
|
||||||
|
name: 'FLIGHT_DISTANCE',
|
||||||
|
desc: 'osdDescElementFlightDist',
|
||||||
|
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_',
|
||||||
|
@ -901,6 +930,14 @@ OSD.constants = {
|
||||||
MAX_ESC_RPM: {
|
MAX_ESC_RPM: {
|
||||||
name: 'MAX_ESC_RPM',
|
name: 'MAX_ESC_RPM',
|
||||||
desc: 'osdDescStatEscRpm'
|
desc: 'osdDescStatEscRpm'
|
||||||
|
},
|
||||||
|
MIN_LINK_QUALITY: {
|
||||||
|
name: 'MIN_LINK_QUALITY',
|
||||||
|
desc: 'osdDescStatMinLinkQuality'
|
||||||
|
},
|
||||||
|
FLIGHT_DISTANCE: {
|
||||||
|
name: 'FLIGHT_DISTANCE',
|
||||||
|
desc: 'osdDescStatFlightDistance'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ALL_WARNINGS: {
|
ALL_WARNINGS: {
|
||||||
|
@ -1046,13 +1083,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.FLIGHT_DIST,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1135,8 +1175,10 @@ OSD.chooseFields = function () {
|
||||||
];
|
];
|
||||||
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
|
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
|
||||||
OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([
|
OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([
|
||||||
F.MAX_ESC_TEMP,
|
F.MAX_ESC_TEMP,
|
||||||
F.MAX_ESC_RPM
|
F.MAX_ESC_RPM,
|
||||||
|
F.MIN_LINK_QUALITY,
|
||||||
|
F.FLIGHT_DISTANCE
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue