Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Common/Inc/settings.h Sat Oct 10 13:51:44 2020 +0200 +++ b/Common/Inc/settings.h Sat Oct 10 16:59:18 2020 +0200 @@ -68,6 +68,8 @@ #define PRESSURE_OFFSET_LIMIT_MBAR 50 +#define MAX_COMPASS_COMP (2u) + /* 2015 Jan 30, hw, deco and travel added for MenuEditGas * can be used for buehlmann, vpm, etc. later but be carefull * with current implemenation */ @@ -223,6 +225,8 @@ uint8_t MotionDetection; /* new in 0xFFFF001B */ uint32_t cv_config_BigScreen; + /* new in 0xFFFF001C */ + uint8_t compassInertia; } SSettings; typedef struct