Mercurial > public > ostc4
diff Discovery/Src/tMenuCvOptionText.c @ 1078:082825daccb5 Icon_Integration tip
Added control views for HUD:
The HUD implementation may now be activated by the compile switch ENABLE_HUD_SUPPORT. The HUD will become visible onces detected in the CvOpt overview menu. The first implementation is for testing only => The LEDs may be operated by a number field. Positiv values activate the red, negativ the green LEDs. Depending on the value blink sequences will be scheduled.
At the moment no dive specific data is mapped to the LED operation (like e.g. warnings).
| author | Ideenmodellierer |
|---|---|
| date | Mon, 02 Mar 2026 17:30:38 +0100 |
| parents | c87753e73eb8 |
| children |
line wrap: on
line diff
--- a/Discovery/Src/tMenuCvOptionText.c Mon Mar 02 17:22:25 2026 +0100 +++ b/Discovery/Src/tMenuCvOptionText.c Mon Mar 02 17:30:38 2026 +0100 @@ -147,6 +147,13 @@ return strlen(pText); } +uint8_t tMCvOptText_refreshHUD(char* pText) +{ + uint8_t textPointer = 0; + textPointer += snprintf(&pText[textPointer],20,"HUD"); + pText[textPointer] = 0; + return strlen(pText); +} uint8_t tMCvOptText_BuildDynamicContentList() { @@ -174,6 +181,10 @@ case SENSOR_GNSS: SensorActive[SENSOR_GNSS] = 1; break; #endif +#ifdef ENABLE_HUD_SUPPORT + case SENSOR_HUD: SensorActive[SENSOR_HUD] = 1; + break; +#endif default: break; } @@ -207,7 +218,13 @@ refreshFctPointerTable[activeLines] = tMCvOptText_refreshCO2; CvOptAvailable = 1; } - break; + break; + case CVOPT_HUD: if(SensorActive[SENSOR_HUD]) + { + refreshFctPointerTable[activeLines] = tMCvOptText_refreshHUD; + CvOptAvailable = 1; + } + break; default: break; }
