Mercurial > public > ostc4
diff Common/Inc/data_central.h @ 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 | 3c73180fde1d |
| children |
line wrap: on
line diff
--- a/Common/Inc/data_central.h Mon Mar 02 17:22:25 2026 +0100 +++ b/Common/Inc/data_central.h Mon Mar 02 17:30:38 2026 +0100 @@ -48,6 +48,8 @@ #define EXT_INTERFACE_BUZZER_PING_TIME_MS (1000u) /* max time the buzzer should be active for single ping */ #define EXT_INTERFACE_BUZZER_STABLE_TIME_MS (500u) /* min time a state (ON / OFF) should be stable before it may be changed */ +#define EXT_INTERFACE_HUD_LED_MAX (16u) /* max number of supported LED for HUD operation */ + /* Helper structs ------------------------------------------------------------*/ @@ -215,7 +217,7 @@ typedef struct { /* from Small CPU */ - uint8_t extIf_sensor_data[3][32]; /* The external sensor may contain a 64 bit ID. It has been placed at the beginning of the structure to avoid problems in alignment */ + uint8_t extIf_sensor_data[EXT_INTERFACE_SENSOR_CNT][32]; /* The external sensor may contain a 64 bit ID. It has been placed at the beginning of the structure to avoid problems in alignment */ uint8_t extIf_sensor_map[EXT_INTERFACE_SENSOR_CNT]; int32_t dive_time_seconds; @@ -292,6 +294,9 @@ /* last GF_Surf when shallow area was entered */ uint8_t gf_surf_log; +/* HUD control data */ + uint8_t HUD_led_sequence[EXT_INTERFACE_HUD_LED_MAX]; + uint8_t HUD_led_brightness; } SLifeData; @@ -516,6 +521,7 @@ SENSOR_CO2M, SENSOR_GNSS, SENSOR_GNSSM, + SENSOR_HUD, SENSOR_MUX, SENSOR_END } externalInterfaceSensorType;
