Mercurial > public > ostc4
diff Common/Inc/settings.h @ 1082:1aa45000f92c Icon_Integration tip
Added configuration menu for HUD functions:
The V1 HUD has 4 functions (holes) which may be realized by one or two LEDs. The functions (like ppo2 monitoring or ascent speed) may be configurated by the diver using the HUD menu. The functions which may be selected depend on the HW configuration (e.g. the connected sensors) and the number of LEDs which are needed to realize the function. The previous HUD test implementation may still be activate usind the compile switch ENABLE_HUD_TESTING
| author | Ideenmodellierer |
|---|---|
| date | Sun, 15 Mar 2026 21:40:35 +0100 |
| parents | 3c73180fde1d |
| children |
line wrap: on
line diff
--- a/Common/Inc/settings.h Sun Mar 15 21:28:53 2026 +0100 +++ b/Common/Inc/settings.h Sun Mar 15 21:40:35 2026 +0100 @@ -97,6 +97,8 @@ #define NUMBER_OF_PROFILES (4u) +#define MAX_NUMBER_OF_HUD_FCTS (6u) /* number of functions which may be selected at once (is not equal to LEDs involved) */ + typedef enum { O2_SENSOR_SOURCE_OPTIC = 0, @@ -334,6 +336,8 @@ /* new in 0xFFFF002d */ uint8_t profileName[NUMBER_OF_PROFILES][9]; uint8_t activeProfile; + /* new in 0xFFFF002F */ + uint8_t hudFunction[MAX_NUMBER_OF_HUD_FCTS]; } SSettings; uint8_t writeData(uint8_t *);
