1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 22:35:17 +03:00

Added OSD_REMAINING_TIME_ESTIMATE to OSD

This commit is contained in:
jyesmith 2017-11-15 19:53:16 +11:00
parent ef67542524
commit e796838bb1
2 changed files with 25 additions and 14 deletions

View file

@ -2520,6 +2520,9 @@
"osdDescElementTimer2" : { "osdDescElementTimer2" : {
"message": "Shows the value of timer 2" "message": "Shows the value of timer 2"
}, },
"osdDescElementRemaningTimeEstimate" : {
"message": "Estimate of flight time remaning"
},
"osdDescElementUnknown" : { "osdDescElementUnknown" : {
"message": "Unknown element (details to be added in a future release)" "message": "Unknown element (details to be added in a future release)"
}, },

View file

@ -606,20 +606,27 @@ OSD.constants = {
positionable: true, positionable: true,
preview: '226000' preview: '226000'
}, },
RTC_DATE_TIME: { REMAINING_TIME_ESTIMATE: {
name: 'RTC_DATE_TIME', name: 'REMAINING_TIME_ESTIMATE',
desc: 'osdDescElementRtcDateTime', desc: 'osdDescElementRemaningTimeEstimate',
default_position: -1, default_position: -1,
positionable: true, positionable: true,
preview: '2017-11-11 16:20:00' preview: '01:13'
}, },
ADJUSTMENT_RANGE: { RTC_DATE_TIME: {
name: 'ADJUSTMENT_RANGE', name: 'RTC_DATE_TIME',
desc: 'osdDescElementAdjustmentRange', desc: 'osdDescElementRtcDateTime',
default_position: -1, default_position: -1,
positionable: true, positionable: true,
preview: 'PITCH/ROLL P: 42' preview: '2017-11-11 16:20:00'
}, },
ADJUSTMENT_RANGE: {
name: 'ADJUSTMENT_RANGE',
desc: 'osdDescElementAdjustmentRange',
default_position: -1,
positionable: true,
preview: 'PITCH/ROLL P: 42'
},
TIMER_1: { TIMER_1: {
name: 'TIMER_1', name: 'TIMER_1',
desc: 'osdDescElementTimer1', desc: 'osdDescElementTimer1',
@ -815,6 +822,7 @@ OSD.chooseFields = function () {
]); ]);
if (semver.gte(CONFIG.apiVersion, "1.37.0")) { if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([ OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.REMAINING_TIME_ESTIMATE,
F.RTC_DATE_TIME, F.RTC_DATE_TIME,
F.ADJUSTMENT_RANGE F.ADJUSTMENT_RANGE
]); ]);