Added OSD_REMAINING_TIME_ESTIMATE to OSD

10.3.x-maintenance
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" : {
"message": "Shows the value of timer 2"
},
"osdDescElementRemaningTimeEstimate" : {
"message": "Estimate of flight time remaning"
},
"osdDescElementUnknown" : {
"message": "Unknown element (details to be added in a future release)"
},

View File

@ -606,6 +606,13 @@ OSD.constants = {
positionable: true,
preview: '226000'
},
REMAINING_TIME_ESTIMATE: {
name: 'REMAINING_TIME_ESTIMATE',
desc: 'osdDescElementRemaningTimeEstimate',
default_position: -1,
positionable: true,
preview: '01:13'
},
RTC_DATE_TIME: {
name: 'RTC_DATE_TIME',
desc: 'osdDescElementRtcDateTime',
@ -815,6 +822,7 @@ OSD.chooseFields = function () {
]);
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.REMAINING_TIME_ESTIMATE,
F.RTC_DATE_TIME,
F.ADJUSTMENT_RANGE
]);