diff --git a/locales/en/messages.json b/locales/en/messages.json index a63ae63a..991acfc3 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -3575,6 +3575,12 @@ "osdDescStatGForce": { "message": "Max G-Force experienced by the craft" }, + "osdDescStatEscTemperature": { + "message": "Max ESC temperature" + }, + "osdDescStatEscRpm": { + "message": "Max ESC RPM" + }, "osdTimerSource": { diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index 6277d827..4aae3ec4 100755 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -893,6 +893,14 @@ OSD.constants = { MAX_G_FORCE: { name: 'MAX_G_FORCE', desc: 'osdDescStatGForce' + }, + MAX_ESC_TEMP: { + name: 'MAX_ESC_TEMP', + desc: 'osdDescStatEscTemperature' + }, + MAX_ESC_RPM: { + name: 'MAX_ESC_RPM', + desc: 'osdDescStatEscRpm' } }, ALL_WARNINGS: { @@ -1125,6 +1133,12 @@ OSD.chooseFields = function () { F.BLACKBOX_LOG_NUMBER, F.MAX_G_FORCE ]; + if (semver.gte(CONFIG.apiVersion, "1.41.0")) { + OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([ + F.MAX_ESC_TEMP, + F.MAX_ESC_RPM + ]); + } } // Choose warnings