From e796838bb149f3fa8bd70a0553feb63a9faa9f87 Mon Sep 17 00:00:00 2001 From: jyesmith Date: Wed, 15 Nov 2017 19:53:16 +1100 Subject: [PATCH] Added OSD_REMAINING_TIME_ESTIMATE to OSD --- _locales/en/messages.json | 3 +++ tabs/osd.js | 36 ++++++++++++++++++++++-------------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index b09ee481..6e7dc45d 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -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)" }, diff --git a/tabs/osd.js b/tabs/osd.js index 73bfd699..0e3539de 100755 --- a/tabs/osd.js +++ b/tabs/osd.js @@ -606,20 +606,27 @@ OSD.constants = { positionable: true, preview: '226000' }, - RTC_DATE_TIME: { - name: 'RTC_DATE_TIME', - desc: 'osdDescElementRtcDateTime', - default_position: -1, - positionable: true, - preview: '2017-11-11 16:20:00' - }, - ADJUSTMENT_RANGE: { - name: 'ADJUSTMENT_RANGE', - desc: 'osdDescElementAdjustmentRange', - default_position: -1, - positionable: true, - preview: 'PITCH/ROLL P: 42' - }, + 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', + default_position: -1, + positionable: true, + 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: { name: 'TIMER_1', desc: 'osdDescElementTimer1', @@ -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 ]);