Mercurial > public > ostc4
diff Common/Inc/data_exchange.h @ 756:6de83d8205a0
Added visualization of CO2 during dive:
In the previous version CO2 values were available in sufrace mode only. Now the display of Co2 value has been added to the lower left corner view. In addition a Co2 alarm has been added. Early Co2 warning vaues will be displayed in yellow while critical values are shown in red.
author | Ideenmodellierer |
---|---|
date | Tue, 07 Mar 2023 20:02:05 +0100 |
parents | 5143e927219f |
children | aa6006975e76 |
line wrap: on
line diff
--- a/Common/Inc/data_exchange.h Tue Mar 07 19:59:02 2023 +0100 +++ b/Common/Inc/data_exchange.h Tue Mar 07 20:02:05 2023 +0100 @@ -54,6 +54,9 @@ #define EXTIF_SENSOR_INFO_SIZE (32u) /* size of data array reserved for extended sensor data from external interface */ +#define CO2_WARNING_LEVEL_PPM (2000u) /* Early warning to indicate unexpected high co2 concentration (yellow) */ +#define CO2_ALARM_LEVEL_PPM (5000u) /* starting by this level CO2 has a negative impact on health (long exposure) */ + enum MODE { MODE_SURFACE = 0,