comparison Common/Inc/settings.h @ 539:d784f281833a

Added inertia simulation for compass heading: In previous version calculated compass values were directly used for visualization of the compass. This causes a fast changing (jumping) of values. With the inertia introduction the compass behalfs more like an analog compass. The final value is reached slowly and the displayed values are more stable. For configuration a new menu item has been added to the compass menu allowing to switch inertia off (default), small and large inertia simulation
author Ideenmodellierer
date Sat, 10 Oct 2020 16:59:18 +0200
parents 88c626d01ee5
children 6960df7ddb09
comparison
equal deleted inserted replaced
538:b1eee27cd02b 539:d784f281833a
65 #define MMDDYY 0 65 #define MMDDYY 0
66 #define DDMMYY 1 66 #define DDMMYY 1
67 #define YYMMDD 2 67 #define YYMMDD 2
68 68
69 #define PRESSURE_OFFSET_LIMIT_MBAR 50 69 #define PRESSURE_OFFSET_LIMIT_MBAR 50
70
71 #define MAX_COMPASS_COMP (2u)
70 72
71 /* 2015 Jan 30, hw, deco and travel added for MenuEditGas 73 /* 2015 Jan 30, hw, deco and travel added for MenuEditGas
72 * can be used for buehlmann, vpm, etc. later but be carefull 74 * can be used for buehlmann, vpm, etc. later but be carefull
73 * with current implemenation */ 75 * with current implemenation */
74 typedef struct{ 76 typedef struct{
221 uint32_t cv_configuration; 223 uint32_t cv_configuration;
222 /* new in 0xFFFF001A */ 224 /* new in 0xFFFF001A */
223 uint8_t MotionDetection; 225 uint8_t MotionDetection;
224 /* new in 0xFFFF001B */ 226 /* new in 0xFFFF001B */
225 uint32_t cv_config_BigScreen; 227 uint32_t cv_config_BigScreen;
228 /* new in 0xFFFF001C */
229 uint8_t compassInertia;
226 } SSettings; 230 } SSettings;
227 231
228 typedef struct 232 typedef struct
229 { 233 {
230 // 8 bytes 234 // 8 bytes