mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Fix missing GPS Laptimer OSD elements (#3506)
This commit is contained in:
parent
9a1a18b5b9
commit
dfd12cd90d
2 changed files with 56 additions and 0 deletions
|
@ -5298,6 +5298,27 @@
|
||||||
"osdDescElementSysFanSpeed": {
|
"osdDescElementSysFanSpeed": {
|
||||||
"message": "Goggle fan speed rendered by the goggles"
|
"message": "Goggle fan speed rendered by the goggles"
|
||||||
},
|
},
|
||||||
|
"osdTextElementLapTimeCurrent": {
|
||||||
|
"message": "GPS lap time current",
|
||||||
|
"description": "One of the elements of the OSD"
|
||||||
|
},
|
||||||
|
"osdDescElementLapTimeCurrent": {
|
||||||
|
"message": "Current GPS lap time"
|
||||||
|
},
|
||||||
|
"osdTextElementLapTimePrevious": {
|
||||||
|
"message": "GPS lap time previous",
|
||||||
|
"description": "One of the elements of the OSD"
|
||||||
|
},
|
||||||
|
"osdDescElementLapTimePrevious": {
|
||||||
|
"message": "Previous GPS lap time"
|
||||||
|
},
|
||||||
|
"osdTextElementLapTimeBest3": {
|
||||||
|
"message": "GPS lap time best 3",
|
||||||
|
"description": "One of the elements of the OSD"
|
||||||
|
},
|
||||||
|
"osdDescElementLapTimeBest": {
|
||||||
|
"message": "Best GPS lap time"
|
||||||
|
},
|
||||||
"osdTextElementCraftName": {
|
"osdTextElementCraftName": {
|
||||||
"message": "Craft name",
|
"message": "Craft name",
|
||||||
"description": "One of the elements of the OSD"
|
"description": "One of the elements of the OSD"
|
||||||
|
|
|
@ -1508,6 +1508,33 @@ OSD.loadDisplayFields = function() {
|
||||||
positionable: true,
|
positionable: true,
|
||||||
preview: `F${FONT.symbol(SYM.TEMPERATURE)}5`,
|
preview: `F${FONT.symbol(SYM.TEMPERATURE)}5`,
|
||||||
},
|
},
|
||||||
|
GPS_LAP_TIME_CURRENT: {
|
||||||
|
name: 'GPS_LAP_TIME_CURRENT',
|
||||||
|
text: 'osdTextElementLapTimeCurrent',
|
||||||
|
desc: 'osdDescElementLapTimeCurrent',
|
||||||
|
defaultPosition: -1,
|
||||||
|
draw_order: 540,
|
||||||
|
positionable: true,
|
||||||
|
preview: '1:23.456',
|
||||||
|
},
|
||||||
|
GPS_LAP_TIME_PREVIOUS: {
|
||||||
|
name: 'GPS_LAP_TIME_PREVIOUS',
|
||||||
|
text: 'osdTextElementLapTimePrevious',
|
||||||
|
desc: 'osdDescElementLapTimePrevious',
|
||||||
|
defaultPosition: -1,
|
||||||
|
draw_order: 545,
|
||||||
|
positionable: true,
|
||||||
|
preview: '1:23.456',
|
||||||
|
},
|
||||||
|
GPS_LAP_TIME_BEST3: {
|
||||||
|
name: 'GPS_LAP_TIME_BEST3',
|
||||||
|
text: 'osdTextElementLapTimeBest3',
|
||||||
|
desc: 'osdDescElementLapTimeBest3',
|
||||||
|
defaultPosition: -1,
|
||||||
|
draw_order: 550,
|
||||||
|
positionable: true,
|
||||||
|
preview: '1:23.456',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1937,6 +1964,14 @@ OSD.chooseFields = function() {
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_46)) {
|
||||||
|
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
|
||||||
|
F.GPS_LAP_TIME_CURRENT,
|
||||||
|
F.GPS_LAP_TIME_PREVIOUS,
|
||||||
|
F.GPS_LAP_TIME_BEST3,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
// Choose statistic fields
|
// Choose statistic fields
|
||||||
// Nothing much to do here, I'm preempting there being new statistics
|
// Nothing much to do here, I'm preempting there being new statistics
|
||||||
F = OSD.constants.ALL_STATISTIC_FIELDS;
|
F = OSD.constants.ALL_STATISTIC_FIELDS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue