Mercurial > public > ostc4
comparison Discovery/Src/tInfoSensor.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 | ef99fff2d2de |
| children |
comparison
equal
deleted
inserted
replaced
| 1077:bd8ab302ef4a | 1078:082825daccb5 |
|---|---|
| 200 | 200 |
| 201 tInfo_write_content_simple( 30, 770, ME_Y_LINE6, &FontT48, text, CLUT_Font020); | 201 tInfo_write_content_simple( 30, 770, ME_Y_LINE6, &FontT48, text, CLUT_Font020); |
| 202 | 202 |
| 203 tInfo_write_buttonTextline_simple(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_O2Calib); | 203 tInfo_write_buttonTextline_simple(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_O2Calib); |
| 204 } | 204 } |
| 205 | |
| 206 static void refreshInfo_SensorHUD(GFX_DrawCfgScreen s) | |
| 207 { | |
| 208 const SDiveState *pStateReal = stateRealGetPointer(); | |
| 209 char text[50]; | |
| 210 | |
| 211 snprintf(text,50,"%s",pStateReal->lifeData.extIf_sensor_data[activeSensorId]); | |
| 212 tInfo_write_content_simple( 30, 770, ME_Y_LINE1, &FontT48, text, CLUT_Font020); | |
| 213 | |
| 214 tInfo_write_buttonTextline_simple(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,0); | |
| 215 } | |
| 216 | |
| 217 | |
| 218 | |
| 205 // =============================================================================== | 219 // =============================================================================== |
| 206 void refreshInfo_Sensor(GFX_DrawCfgScreen s) | 220 void refreshInfo_Sensor(GFX_DrawCfgScreen s) |
| 207 { | 221 { |
| 208 char text[31]; | 222 char text[31]; |
| 209 | 223 |
| 220 { | 234 { |
| 221 default: | 235 default: |
| 222 case SENSOR_DIGO2M: refreshInfo_SensorO2(s); | 236 case SENSOR_DIGO2M: refreshInfo_SensorO2(s); |
| 223 break; | 237 break; |
| 224 case SENSOR_CO2: | 238 case SENSOR_CO2: |
| 225 case SENSOR_CO2M: refreshInfo_SensorCo2(s); | 239 case SENSOR_CO2M: refreshInfo_SensorCo2(s); |
| 240 break; | |
| 241 case SENSOR_HUD: refreshInfo_SensorHUD(s); | |
| 226 break; | 242 break; |
| 227 } | 243 } |
| 228 } | 244 } |
| 229 | 245 |
| 230 void sendActionToInfoSensor(uint8_t sendAction) | 246 void sendActionToInfoSensor(uint8_t sendAction) |
