diff --git a/locales/en/messages.json b/locales/en/messages.json index 2f70739a..eccea295 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -3487,6 +3487,9 @@ "osdDescElementCompassBar": { "message": "Graphical compass bar showing current heading" }, + "osdDescElementFlipArrow": { + "message": "Arrow showing which side motors are up in turtle mode" + }, "osdDescElementTimer1" : { "message": "Shows the value of timer 1" }, diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index f35ac94c..6277d827 100755 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -809,6 +809,14 @@ OSD.constants = { positionable: true, preview: 'L16' }, + FLIP_ARROW: { + name: 'FLIP_ARROW', + desc: 'osdDescElementFlipArrow', + default_position: -1, + draw_order: 340, + positionable: true, + preview: FONT.symbol(SYM.ARROW_EAST) + }, }, UNKNOWN_DISPLAY_FIELD: { name: 'UNKNOWN_', @@ -1032,6 +1040,11 @@ OSD.chooseFields = function () { F.G_FORCE, F.LOG_STATUS, ]); + if (semver.gte(CONFIG.apiVersion, "1.41.0")) { + OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([ + F.FLIP_ARROW, + ]); + } } } }