diff Common/Inc/data_central.h @ 662:1b995079c045 Betatest

PSCR Mode
author heinrichs weikamp
date Tue, 14 Dec 2021 15:36:10 +0100
parents d784f281833a
children c00a80f26641
line wrap: on
line diff
--- a/Common/Inc/data_central.h	Mon Nov 01 12:39:34 2021 +0100
+++ b/Common/Inc/data_central.h	Tue Dec 14 15:36:10 2021 +0100
@@ -50,7 +50,8 @@
 	uint8_t setPoint_cbar;
 	uint8_t change_during_ascent_depth_meter_otherwise_zero;
 	uint8_t GasIdInSettings;
-	uint8_t temp1_for16bitalign;
+	uint8_t AppliedDiveMode;
+	float pscr_factor;
 } 	SGas;
 
 typedef struct
@@ -75,6 +76,13 @@
 		uint8_t data[12];
 } 	SDataWireless;
 
+
+typedef struct
+{
+		uint16_t CO2_ppm;
+		uint16_t signalStrength;
+} 	SCO2Sensor;
+
 /* Main structs -------------------------------------------------------------*/
 
 
@@ -187,6 +195,8 @@
 	uint16_t ambient_light_level;
 	SDataWireless wireless_data[4];
 	uint8_t buttonPICdata[4];
+	SCO2Sensor CO2_data;
+
 
 	/* by create DiveSettings() and by setActualGas()
 	 * is send to Small CPU2 for nitrogen calculation
@@ -221,6 +231,9 @@
 	 float ppO2Sensor_bar[3];
 	 float sensorVoltage_mV[3];
 	 float HUD_battery_voltage_V;
+
+/* for PSCR Mode */
+	 float ppo2Simulated_bar;
 } 	SLifeData;
 
 
@@ -323,6 +336,9 @@
 	 */
 	float internal__pressure_first_stop_ambient_bar_as_upper_limit_for_gf_low_otherwise_zero;
 	uint16_t compassHeading;
+
+	uint8_t pscr_o2_drop;
+	uint8_t pscr_lung_ratio;
  }  SDiveSettings;
 
 enum CHARGE_STATUS{
@@ -454,4 +470,6 @@
 
 _Bool is_ambient_pressure_close_to_surface(SLifeData *lifeData);
 
+uint8_t isLoopMode(uint8_t Mode);
+
 #endif // DATA_CENTRAL_H