Mercurial > public > ostc4
comparison Small_CPU/Src/externalInterface.c @ 1072:8b97003dbb60 Icon_Integration
Improve CO2 calibration:
The most common calibration environment for diving is fresh air => ~400ppm co2. Some sensors do not have this setting as default => Calibration to 0ppm. To make sure that a proper calibration reference is set the common used value of 400ppm is not set before starting the calibration. For implementation new states were added to the co2 protocol state maschine. In addition the rx processor is now able to handle two responds parameters.
| author | Ideenmodellierer |
|---|---|
| date | Thu, 19 Feb 2026 21:37:34 +0100 |
| parents | e0ba2b29dc1f |
| children |
comparison
equal
deleted
inserted
replaced
| 1071:b4a79464caf7 | 1072:8b97003dbb60 |
|---|---|
| 1060 { | 1060 { |
| 1061 index = Mux2ADCMap[index]; | 1061 index = Mux2ADCMap[index]; |
| 1062 } | 1062 } |
| 1063 if(SensorMap[index] == SENSOR_CO2) | 1063 if(SensorMap[index] == SENSOR_CO2) |
| 1064 { | 1064 { |
| 1065 externalInterface_SensorState[index] = UART_CO2_CALIBRATE; | 1065 externalInterface_SensorState[index] = UART_CO2_CALIBRATE_H; |
| 1066 } | 1066 } |
| 1067 break; | 1067 break; |
| 1068 case EXT_INTERFACE_O2_INDICATE: index = (Cmd >> 8) & 0x000F; | 1068 case EXT_INTERFACE_O2_INDICATE: index = (Cmd >> 8) & 0x000F; |
| 1069 if(SensorMap[index] == SENSOR_DIGO2M) | 1069 if(SensorMap[index] == SENSOR_DIGO2M) |
| 1070 { | 1070 { |
