Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1081:1b38d7b8da35 | 1082:1aa45000f92c |
|---|---|
| 237 #include "t7.h" | 237 #include "t7.h" |
| 238 #include "t3.h" | 238 #include "t3.h" |
| 239 #include "tMenuEditSetpoint.h" | 239 #include "tMenuEditSetpoint.h" |
| 240 #include "cv_heartbeat.h" | 240 #include "cv_heartbeat.h" |
| 241 #include "tInfoLogger.h" | 241 #include "tInfoLogger.h" |
| 242 #include "hud.h" | |
| 242 | 243 |
| 243 #ifdef DEMOMODE | 244 #ifdef DEMOMODE |
| 244 #include "demo.h" | 245 #include "demo.h" |
| 245 static void TIM_DEMO_init(void); | 246 static void TIM_DEMO_init(void); |
| 246 #endif | 247 #endif |
| 486 | 487 |
| 487 if( settingsGetPointer()->buttonLockActive ) | 488 if( settingsGetPointer()->buttonLockActive ) |
| 488 { | 489 { |
| 489 ButtonLockState = LOCK_FIRST_PRESS; | 490 ButtonLockState = LOCK_FIRST_PRESS; |
| 490 } | 491 } |
| 491 | 492 #ifdef ENABLE_HUD_SUPPORT |
| 493 hud_Init(); | |
| 494 #endif | |
| 492 /* @brief main LOOP | 495 /* @brief main LOOP |
| 493 * | 496 * |
| 494 * this is executed while no IRQ interrupts it | 497 * this is executed while no IRQ interrupts it |
| 495 * - deco calculation | 498 * - deco calculation |
| 496 * - bluetooth | 499 * - bluetooth |
| 584 /* Autofocus for T3 view */ | 587 /* Autofocus for T3 view */ |
| 585 if((settingsGetPointer()->cvAutofocus) && (settingsGetPointer()->design == 3) && (get_globalState() == StD) && (stateUsed->mode == MODE_DIVE)) | 588 if((settingsGetPointer()->cvAutofocus) && (settingsGetPointer()->design == 3) && (get_globalState() == StD) && (stateUsed->mode == MODE_DIVE)) |
| 586 { | 589 { |
| 587 t3_handleAutofocus(); | 590 t3_handleAutofocus(); |
| 588 } | 591 } |
| 592 | |
| 593 /* handle HUD status */ | |
| 594 #ifdef ENABLE_HUD_SUPPORT | |
| 595 if(hud_IsActive()) | |
| 596 { | |
| 597 hud_UpdateStatus(); | |
| 598 } | |
| 599 #endif | |
| 600 | |
| 601 | |
| 589 #ifdef SIM_WRITES_LOGBOOK | 602 #ifdef SIM_WRITES_LOGBOOK |
| 590 if(stateUsed == stateSimGetPointer()) | 603 if(stateUsed == stateSimGetPointer()) |
| 591 logbook_InitAndWrite((SDiveState*)stateUsed); | 604 logbook_InitAndWrite((SDiveState*)stateUsed); |
| 592 #else | 605 #else |
| 593 if(stateUsed == stateRealGetPointer()) /* Handle log entries while in dive mode*/ | 606 if(stateUsed == stateRealGetPointer()) /* Handle log entries while in dive mode*/ |
