From 510ac9f5133882ef89e4f4061a4fdcc75f334813 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sun, 29 Oct 2023 21:09:52 +0100 Subject: [PATCH] Fix missing stat desc (#3617) --- 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: {