comparison Common/Inc/settings.h @ 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 da8126d5ea9f
children 4abfb8a2a435
comparison
equal deleted inserted replaced
775:46c6d2380d4e 776:45b8f3c2acce
84 #define PSCR_MIN_LUNG_RATIO (5u) 84 #define PSCR_MIN_LUNG_RATIO (5u)
85 #define PSCR_MAX_LUNG_RATIO (20u) 85 #define PSCR_MAX_LUNG_RATIO (20u)
86 86
87 #define UART_MAX_PROTOCOL (2u) 87 #define UART_MAX_PROTOCOL (2u)
88 88
89 #define FUTURE_SPARE_SIZE (4u) /* Applied for reuse of old, not used, scooter block (was 32 bytes)*/ 89 #define FUTURE_SPARE_SIZE (3u) /* Applied for reuse of old, not used, scooter block (was 32 bytes)*/
90 90
91 typedef enum 91 typedef enum
92 { 92 {
93 O2_SENSOR_SOURCE_OPTIC = 0, 93 O2_SENSOR_SOURCE_OPTIC = 0,
94 O2_SENSOR_SOURCE_ANALOG, 94 O2_SENSOR_SOURCE_ANALOG,
235 235
236 uint8_t scubberActiveId; /* redefined in 0xFFFF0023 */ 236 uint8_t scubberActiveId; /* redefined in 0xFFFF0023 */
237 SScrubberData scrubberData[2]; 237 SScrubberData scrubberData[2];
238 uint8_t ext_sensor_map[5]; 238 uint8_t ext_sensor_map[5];
239 uint8_t buttonLockActive; /* redefined in 0xFFFF0025 */ 239 uint8_t buttonLockActive; /* redefined in 0xFFFF0025 */
240 int8_t compassDeclinationDeg; /* redefined in 0xFFFF0026 */
240 uint8_t Future_SPARE[FUTURE_SPARE_SIZE]; /* redefined in 0xFFFF0020 (old scooter Block was 32 byte)*/ 241 uint8_t Future_SPARE[FUTURE_SPARE_SIZE]; /* redefined in 0xFFFF0020 (old scooter Block was 32 byte)*/
241 // new in 0xFFFF0006 242 // new in 0xFFFF0006
242 uint8_t ppo2sensors_deactivated; 243 uint8_t ppo2sensors_deactivated;
243 uint8_t tX_colorscheme; 244 uint8_t tX_colorscheme;
244 uint8_t tX_userselectedLeftLowerCornerPrimary; 245 uint8_t tX_userselectedLeftLowerCornerPrimary;