diff --git a/radio/src/dataconstants.h b/radio/src/dataconstants.h index e32ae241d..73bf43a14 100644 --- a/radio/src/dataconstants.h +++ b/radio/src/dataconstants.h @@ -576,8 +576,8 @@ enum MixSources { #endif #if defined(GYRO) - MIXSRC_GYRO1, LUA_EXPORT("gyr1", "Gyro X") - MIXSRC_GYRO2, LUA_EXPORT("gyr2", "Gyro Y") + MIXSRC_GYRO1, LUA_EXPORT("gyrx", "Gyro X") + MIXSRC_GYRO2, LUA_EXPORT("gyry", "Gyro Y") #endif #if defined(PCBSKY9X) diff --git a/radio/src/gui/128x64/lcd.cpp b/radio/src/gui/128x64/lcd.cpp index 30411c0ce..f7d43bc07 100644 --- a/radio/src/gui/128x64/lcd.cpp +++ b/radio/src/gui/128x64/lcd.cpp @@ -725,7 +725,7 @@ void drawSource(coord_t x, coord_t y, uint32_t idx, LcdFlags att) } #if defined(GYRO) else if (idx <= MIXSRC_GYRO2) { - drawStringWithIndex(x, y, "Gyr", idx - MIXSRC_GYRO1 + 1, att); + lcdDrawTextAtIndex(x, y, STR_GYROS, idx - MIXSRC_GYRO1, att); } #endif else if (idx >= MIXSRC_FIRST_SWITCH && idx <= MIXSRC_LAST_SWITCH) { diff --git a/radio/src/translations.cpp b/radio/src/translations.cpp index 7dc5add48..0905138fd 100644 --- a/radio/src/translations.cpp +++ b/radio/src/translations.cpp @@ -112,6 +112,7 @@ const char STR_OPEN9X[] = ISTR(BLUETOOTH_MODES) #endif ISTR(VANTENNATYPES) + ISTR(GYROS) ; // The 0-terminated-strings diff --git a/radio/src/translations.h b/radio/src/translations.h index e214f5300..3515069c6 100644 --- a/radio/src/translations.h +++ b/radio/src/translations.h @@ -213,7 +213,8 @@ extern const char STR_OPEN9X[]; #else #define OFS_VANTENNATYPES (OFS_VCELLINDEX + sizeof(TR_VCELLINDEX)) #endif - #define OFS_MAVLINK_BAUDS (OFS_VANTENNATYPES + sizeof(TR_VANTENNATYPES)) + #define OFS_GYROS (OFS_VANTENNATYPES + sizeof(TR_VANTENNATYPES)) + #define OFS_MAVLINK_BAUDS (OFS_GYROS + sizeof(TR_GYROS)) #define OFS_SPARE (OFS_MAVLINK_BAUDS) #define STR_OFFON (STR_OPEN9X + OFS_OFFON) @@ -313,6 +314,7 @@ extern const char STR_OPEN9X[]; #define STR_VPREC (STR_OPEN9X + OFS_VPREC) #define STR_VCELLINDEX (STR_OPEN9X + OFS_VCELLINDEX) #define STR_VANTENNATYPES (STR_OPEN9X + OFS_VANTENNATYPES) + #define STR_GYROS (STR_OPEN9X + OFS_GYROS) #if defined(BLUETOOTH) extern const char STR_BLUETOOTH[]; diff --git a/radio/src/translations/cz.h.txt b/radio/src/translations/cz.h.txt index e6b95aada..5bb2c2f1f 100644 --- a/radio/src/translations/cz.h.txt +++ b/radio/src/translations/cz.h.txt @@ -510,6 +510,9 @@ #define TR_VANTENNATYPES "InternĂ­""Ext+Int" #endif +gyrY#define LEN_GYROS "\004" +#define TR_GYROS "GyrX""GyrY" + // ZERO TERMINATED STRINGS #if defined(COLORLCD) #define INDENT "\007" diff --git a/radio/src/translations/de.h.txt b/radio/src/translations/de.h.txt index f0b7ba845..946edb631 100644 --- a/radio/src/translations/de.h.txt +++ b/radio/src/translations/de.h.txt @@ -520,6 +520,9 @@ #define LEN_VANTENNATYPES "\014" #define TR_VANTENNATYPES "Int. Antenne""Ext. + Int.\0" // Antennenauswahl +gyrY#define LEN_GYROS "\004" +#define TR_GYROS "GyrX""GyrY" + // ZERO TERMINATED STRINGS #if defined(COLORLCD) #define INDENT "\007" diff --git a/radio/src/translations/en.h.txt b/radio/src/translations/en.h.txt index a5847f726..fd5a5d112 100644 --- a/radio/src/translations/en.h.txt +++ b/radio/src/translations/en.h.txt @@ -514,6 +514,9 @@ #define TR_VANTENNATYPES "Internal""Ext+Int\0" #endif +gyrY#define LEN_GYROS "\004" +#define TR_GYROS "GyrX""GyrY" + // ZERO TERMINATED STRINGS #if defined(COLORLCD) #define INDENT " " diff --git a/radio/src/translations/es.h.txt b/radio/src/translations/es.h.txt index 231d43006..cbf9aa5a0 100644 --- a/radio/src/translations/es.h.txt +++ b/radio/src/translations/es.h.txt @@ -514,6 +514,9 @@ #define TR_VANTENNATYPES "Internal""Ext+Int\0" #endif +gyrY#define LEN_GYROS "\004" +#define TR_GYROS "GyrX""GyrY" + // ZERO TERMINATED STRINGS #if defined(COLORLCD) #define INDENT " " diff --git a/radio/src/translations/fi.h.txt b/radio/src/translations/fi.h.txt index b3226e134..2e57bb85c 100644 --- a/radio/src/translations/fi.h.txt +++ b/radio/src/translations/fi.h.txt @@ -514,6 +514,9 @@ #define TR_VANTENNATYPES "Internal""Ext+Int\0" #endif +gyrY#define LEN_GYROS "\004" +#define TR_GYROS "GyrX""GyrY" + // ZERO TERMINATED STRINGS #define INDENT "\001" #define LEN_INDENT 1 diff --git a/radio/src/translations/fr.h.txt b/radio/src/translations/fr.h.txt index 9045b18fd..492f4467c 100644 --- a/radio/src/translations/fr.h.txt +++ b/radio/src/translations/fr.h.txt @@ -527,6 +527,9 @@ #define TR_VANTENNATYPES "Interne""Ext+Int\0" #endif +gyrY#define LEN_GYROS "\004" +#define TR_GYROS "GyrX""GyrY" + // ZERO TERMINATED STRINGS #if defined(COLORLCD) #define INDENT " " diff --git a/radio/src/translations/it.h.txt b/radio/src/translations/it.h.txt index 5b2730408..a323ee3b5 100644 --- a/radio/src/translations/it.h.txt +++ b/radio/src/translations/it.h.txt @@ -516,6 +516,9 @@ #define TR_VANTENNATYPES "Internal""Ext+Int\0" #endif +gyrY#define LEN_GYROS "\004" +#define TR_GYROS "GyrX""GyrY" + // ZERO TERMINATED STRINGS #if defined(COLORLCD) #define INDENT "\007" diff --git a/radio/src/translations/nl.h.txt b/radio/src/translations/nl.h.txt index 2671ca6fb..de1b0bdf3 100644 --- a/radio/src/translations/nl.h.txt +++ b/radio/src/translations/nl.h.txt @@ -511,6 +511,9 @@ #define TR_VANTENNATYPES "Internal""Ext+Int\0" #endif +gyrY#define LEN_GYROS "\004" +#define TR_GYROS "GyrX""GyrY" + // ZERO TERMINATED STRINGS #if defined(COLORLCD) #define INDENT " " diff --git a/radio/src/translations/pl.h.txt b/radio/src/translations/pl.h.txt index b31b60316..f3ed0dab7 100644 --- a/radio/src/translations/pl.h.txt +++ b/radio/src/translations/pl.h.txt @@ -517,6 +517,9 @@ #define TR_VANTENNATYPES "Internal""Ext+Int\0" #endif +gyrY#define LEN_GYROS "\004" +#define TR_GYROS "GyrX""GyrY" + // ZERO TERMINATED STRINGS #if defined(COLORLCD) #define INDENT "\007" diff --git a/radio/src/translations/pt.h.txt b/radio/src/translations/pt.h.txt index 6c5b90e30..ea331d457 100644 --- a/radio/src/translations/pt.h.txt +++ b/radio/src/translations/pt.h.txt @@ -513,6 +513,9 @@ #define TR_VANTENNATYPES "Internal""Ext+Int\0" #endif +gyrY#define LEN_GYROS "\004" +#define TR_GYROS "GyrX""GyrY" + // ZERO TERMINATED STRINGS #if defined(COLORLCD) #define INDENT " " diff --git a/radio/src/translations/se.h.txt b/radio/src/translations/se.h.txt index 8eee8f3f6..870f82ecd 100644 --- a/radio/src/translations/se.h.txt +++ b/radio/src/translations/se.h.txt @@ -525,6 +525,9 @@ #define TR_VANTENNATYPES "Internal""Ext+Int\0" #endif +gyrY#define LEN_GYROS "\004" +#define TR_GYROS "GyrX""GyrY" + // ZERO TERMINATED STRINGS #if defined(COLORLCD) #define INDENT " "