Mercurial > public > ostc4
diff Discovery/Src/base.c @ 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 | ef99fff2d2de |
| children |
line wrap: on
line diff
--- a/Discovery/Src/base.c Sun Mar 15 21:28:53 2026 +0100 +++ b/Discovery/Src/base.c Sun Mar 15 21:40:35 2026 +0100 @@ -239,6 +239,7 @@ #include "tMenuEditSetpoint.h" #include "cv_heartbeat.h" #include "tInfoLogger.h" +#include "hud.h" #ifdef DEMOMODE #include "demo.h" @@ -488,7 +489,9 @@ { ButtonLockState = LOCK_FIRST_PRESS; } - +#ifdef ENABLE_HUD_SUPPORT + hud_Init(); +#endif /* @brief main LOOP * * this is executed while no IRQ interrupts it @@ -586,6 +589,16 @@ { t3_handleAutofocus(); } + + /* handle HUD status */ +#ifdef ENABLE_HUD_SUPPORT + if(hud_IsActive()) + { + hud_UpdateStatus(); + } +#endif + + #ifdef SIM_WRITES_LOGBOOK if(stateUsed == stateSimGetPointer()) logbook_InitAndWrite((SDiveState*)stateUsed);
