comparison Discovery/Src/text_multilanguage.c @ 776:45b8f3c2acce

Add support for a configurable compass declination in a range of -99 to 99 degrees. This allows the displayed compass reading to be configured to take into account the compass declination (difference between the measured magnetic North direction and the actual geographical North direction) that has different values for different locations around the globe. See https://magnetic-declination.com/ for more information. (mikeller)
author heinrichsweikamp
date Thu, 18 May 2023 09:49:17 +0200
parents 46c6d2380d4e
children 4abfb8a2a435
comparison
equal deleted inserted replaced
775:46c6d2380d4e 776:45b8f3c2acce
179 static uint8_t text_EN_CompassInertia[] = "Compass inertia level"; 179 static uint8_t text_EN_CompassInertia[] = "Compass inertia level";
180 static uint8_t text_DE_CompassInertia[] = "Kompass Trägheitsfaktor"; 180 static uint8_t text_DE_CompassInertia[] = "Kompass Trägheitsfaktor";
181 static uint8_t text_FR_CompassInertia[] = ""; 181 static uint8_t text_FR_CompassInertia[] = "";
182 static uint8_t text_IT_CompassInertia[] = ""; 182 static uint8_t text_IT_CompassInertia[] = "";
183 static uint8_t text_ES_CompassInertia[] = ""; 183 static uint8_t text_ES_CompassInertia[] = "";
184
185 static uint8_t text_EN_CompassDeclination[] = "Compass declination";
186 static uint8_t text_DE_CompassDeclination[] = "Kompass Deklination";
187 static uint8_t text_FR_CompassDeclination[] = "Déclinaison";
188 static uint8_t text_IT_CompassDeclination[] = "Ddeclinazione";
189 static uint8_t text_ES_CompassDeclination[] = "Declinación";
184 190
185 191
186 // Menu SYS1 and Customview header 192 // Menu SYS1 and Customview header
187 static uint8_t text_EN_Compass[] = "Compass"; 193 static uint8_t text_EN_Compass[] = "Compass";
188 static uint8_t text_DE_Compass[] = "Kompass"; 194 static uint8_t text_DE_Compass[] = "Kompass";
1980 {(uint8_t)TXT2BYTE_SpecialDiveGas, {text_EN_SpecialDiveGas, text_DE_SpecialDiveGas, text_FR_SpecialDiveGas, text_IT_SpecialDiveGas, text_ES_SpecialDiveGas}}, 1986 {(uint8_t)TXT2BYTE_SpecialDiveGas, {text_EN_SpecialDiveGas, text_DE_SpecialDiveGas, text_FR_SpecialDiveGas, text_IT_SpecialDiveGas, text_ES_SpecialDiveGas}},
1981 {(uint8_t)TXT2BYTE_SpecialDiveGasMenu,{text_EN_SpecialDiveGasMenu, text_DE_SpecialDiveGasMenu, text_FR_SpecialDiveGasMenu, text_IT_SpecialDiveGasMenu, text_ES_SpecialDiveGasMenu}}, 1987 {(uint8_t)TXT2BYTE_SpecialDiveGasMenu,{text_EN_SpecialDiveGasMenu, text_DE_SpecialDiveGasMenu, text_FR_SpecialDiveGasMenu, text_IT_SpecialDiveGasMenu, text_ES_SpecialDiveGasMenu}},
1982 {(uint8_t)TXT2BYTE_SpecialDiveGasMenuCCR,{text_EN_SpecialDiveGasMenuCCR, text_DE_SpecialDiveGasMenuCCR, text_FR_SpecialDiveGasMenuCCR, text_IT_SpecialDiveGasMenuCCR, text_ES_SpecialDiveGasMenuCCR}}, 1988 {(uint8_t)TXT2BYTE_SpecialDiveGasMenuCCR,{text_EN_SpecialDiveGasMenuCCR, text_DE_SpecialDiveGasMenuCCR, text_FR_SpecialDiveGasMenuCCR, text_IT_SpecialDiveGasMenuCCR, text_ES_SpecialDiveGasMenuCCR}},
1983 {(uint8_t)TXT2BYTE_CompassCalib, {text_EN_CompassCalib, text_DE_CompassCalib, text_FR_CompassCalib, text_IT_CompassCalib, text_ES_CompassCalib}}, 1989 {(uint8_t)TXT2BYTE_CompassCalib, {text_EN_CompassCalib, text_DE_CompassCalib, text_FR_CompassCalib, text_IT_CompassCalib, text_ES_CompassCalib}},
1984 {(uint8_t)TXT2BYTE_CompassInertia, {text_EN_CompassInertia, text_DE_CompassInertia, text_FR_CompassInertia, text_IT_CompassInertia, text_ES_CompassInertia}}, 1990 {(uint8_t)TXT2BYTE_CompassInertia, {text_EN_CompassInertia, text_DE_CompassInertia, text_FR_CompassInertia, text_IT_CompassInertia, text_ES_CompassInertia}},
1991 {(uint8_t)TXT2BYTE_CompassDeclination, {text_EN_CompassDeclination, text_DE_CompassDeclination, text_FR_CompassDeclination, text_IT_CompassDeclination, text_ES_CompassDeclination}},
1985 {(uint8_t)TXT2BYTE_UseSensor, {text_EN_UseSensor, text_DE_UseSensor, text_FR_UseSensor, text_IT_UseSensor, text_ES_UseSensor}}, 1992 {(uint8_t)TXT2BYTE_UseSensor, {text_EN_UseSensor, text_DE_UseSensor, text_FR_UseSensor, text_IT_UseSensor, text_ES_UseSensor}},
1986 {(uint8_t)TXT2BYTE_AutomaticSP, {text_EN_AutomaticSP, text_DE_AutomaticSP, text_FR_AutomaticSP, text_IT_AutomaticSP, text_ES_AutomaticSP}}, 1993 {(uint8_t)TXT2BYTE_AutomaticSP, {text_EN_AutomaticSP, text_DE_AutomaticSP, text_FR_AutomaticSP, text_IT_AutomaticSP, text_ES_AutomaticSP}},
1987 {(uint8_t)TXT2BYTE_WarnDecoMissed, {text_EN_WarnDecoMissed, text_DE_WarnDecoMissed, text_FR_WarnDecoMissed, text_IT_WarnDecoMissed, text_ES_WarnDecoMissed}}, 1994 {(uint8_t)TXT2BYTE_WarnDecoMissed, {text_EN_WarnDecoMissed, text_DE_WarnDecoMissed, text_FR_WarnDecoMissed, text_IT_WarnDecoMissed, text_ES_WarnDecoMissed}},
1988 {(uint8_t)TXT2BYTE_WarnPPO2Low, {text_EN_WarnPPO2Low, text_DE_WarnPPO2Low, text_FR_WarnPPO2Low, text_IT_WarnPPO2Low, text_ES_WarnPPO2Low}}, 1995 {(uint8_t)TXT2BYTE_WarnPPO2Low, {text_EN_WarnPPO2Low, text_DE_WarnPPO2Low, text_FR_WarnPPO2Low, text_IT_WarnPPO2Low, text_ES_WarnPPO2Low}},
1989 {(uint8_t)TXT2BYTE_WarnPPO2High, {text_EN_WarnPPO2High, text_DE_WarnPPO2High, text_FR_WarnPPO2High, text_IT_WarnPPO2High, text_ES_WarnPPO2High}}, 1996 {(uint8_t)TXT2BYTE_WarnPPO2High, {text_EN_WarnPPO2High, text_DE_WarnPPO2High, text_FR_WarnPPO2High, text_IT_WarnPPO2High, text_ES_WarnPPO2High}},