Mercurial > public > ostc4
comparison Discovery/Src/data_exchange_main.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 | 4499227a2db8 |
| children |
comparison
equal
deleted
inserted
replaced
| 1077:bd8ab302ef4a | 1078:082825daccb5 |
|---|---|
| 468 } | 468 } |
| 469 if(isNewDisplay()) | 469 if(isNewDisplay()) |
| 470 { | 470 { |
| 471 dataOut.displayVersion = 1; | 471 dataOut.displayVersion = 1; |
| 472 } | 472 } |
| 473 | 473 #ifdef ENABLE_HUD_SUPPORT |
| 474 memcpy (dataOut.data.externalInterface_HUD_Update, pStateReal->lifeData.HUD_led_sequence, EXT_INTERFACE_HUD_LED_MAX); | |
| 475 dataOut.data.externalInterface_HUD_Brightness = pStateReal->lifeData.HUD_led_brightness; | |
| 476 #endif | |
| 474 if(DataEX_check_header_and_footer_ok() && !told_reset_logik_alles_ok) | 477 if(DataEX_check_header_and_footer_ok() && !told_reset_logik_alles_ok) |
| 475 { | 478 { |
| 476 MX_tell_reset_logik_alles_ok(); | 479 MX_tell_reset_logik_alles_ok(); |
| 477 told_reset_logik_alles_ok = 1; | 480 told_reset_logik_alles_ok = 1; |
| 478 } | 481 } |
| 1030 } | 1033 } |
| 1031 | 1034 |
| 1032 if(pStateReal->data_old__lost_connection_to_slave == 0) | 1035 if(pStateReal->data_old__lost_connection_to_slave == 0) |
| 1033 { | 1036 { |
| 1034 pStateReal->lifeData.extIf_sensor_Id = dataIn.data[(dataIn.boolADCO2Data && DATA_BUFFER_ADC)].externalInterface_SensorID; | 1037 pStateReal->lifeData.extIf_sensor_Id = dataIn.data[(dataIn.boolADCO2Data && DATA_BUFFER_ADC)].externalInterface_SensorID; |
| 1035 if(pStateReal->lifeData.extIf_sensor_Id < 3) | 1038 if(pStateReal->lifeData.extIf_sensor_Id < EXT_INTERFACE_SENSOR_CNT) |
| 1036 { | 1039 { |
| 1037 | |
| 1038 memcpy(pStateReal->lifeData.extIf_sensor_data[pStateReal->lifeData.extIf_sensor_Id], dataIn.data[(dataIn.boolADCO2Data && DATA_BUFFER_ADC)].sensor_data, 32); | 1040 memcpy(pStateReal->lifeData.extIf_sensor_data[pStateReal->lifeData.extIf_sensor_Id], dataIn.data[(dataIn.boolADCO2Data && DATA_BUFFER_ADC)].sensor_data, 32); |
| 1039 } | 1041 } |
| 1040 memcpy(pStateReal->lifeData.extIf_sensor_map, dataIn.data[(dataIn.boolADCO2Data && DATA_BUFFER_ADC)].sensor_map, EXT_INTERFACE_SENSOR_CNT); | 1042 memcpy(pStateReal->lifeData.extIf_sensor_map, dataIn.data[(dataIn.boolADCO2Data && DATA_BUFFER_ADC)].sensor_map, EXT_INTERFACE_SENSOR_CNT); |
| 1041 | 1043 |
| 1042 meter = getSampleDepth(&dataIn, pStateReal); | 1044 meter = getSampleDepth(&dataIn, pStateReal); |
