From 618fa73f14dd74a68474e202ba3f9857ff151a66 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sat, 28 Oct 2023 20:32:27 +0200 Subject: [PATCH] Fix missing stat desc --- locales/en/messages.json | 21 +++++++++++++++++++++ src/js/tabs/osd.js | 15 +++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/locales/en/messages.json b/locales/en/messages.json index 3861e75ff6..5d1592ca40 100755 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -6081,6 +6081,27 @@ "osdDescStatBestLap": { "message": "Best lap" }, + "osdTextStatFullThrottleTime": { + "message": "Full throttle timer", + "description": "One of the statistics that can be shown at the end of the flight in the OSD" + }, + "osdDescStatFullThrottleTime": { + "message": "Full throttle timer" + }, + "osdTextStatFullThrottleCounter": { + "message": "Full throttle counter", + "description": "One of the statistics that can be shown at the end of the flight in the OSD" + }, + "osdDescStatFullThrottleCounter": { + "message": "Full throttle counter" + }, + "osdTextStatAvgThrottle": { + "message": "Average throttle", + "description": "One of the statistics that can be shown at the end of the flight in the OSD" + }, + "osdDescStatAvgThrottle": { + "message": "Average throttle" + }, "osdTextStatUnknown": { "message": "Unknown $1", "description": "One of the statistics that can be shown at the end of the flight in the OSD" diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index d04b02172a..c96e8bd92b 100644 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -1720,6 +1720,21 @@ OSD.constants = { text: 'osdTextStatBestLap', desc: 'osdDescStatBestLap', }, + STAT_FULL_THROTTLE_TIME : { + name: 'STAT_FULL_THROTTLE_TIME', + text: 'osdTextStatFullThrottleTime', + desc: 'osdDescStatFullThrottleTime', + }, + STAT_FULL_THROTTLE_COUNTER : { + name: 'STAT_FULL_THROTTLE_COUNTER', + text: 'osdTextStatFullThrottleCounter', + desc: 'osdDescStatFullThrottleCounter', + }, + STAT_AVG_THROTTLE : { + name: 'STAT_AVG_THROTTLE', + text: 'osdTextStatAvgThrottle', + desc: 'osdDescStatAvgThrottle', + }, }, ALL_WARNINGS: { ARMING_DISABLED: {