diff Common/Inc/data_central.h @ 945:aad1a6b9aaec Evo_2_23

Added slow exit graph to t3 view: In the first implementation slow exit was only available in T7 view. To enable it in T3 view the common parts have been extracted into a separate function which is shared between T7 and T3. Only the drawing specific parts remain in the T7 / T3 files.
author Ideenmodellierer
date Thu, 19 Dec 2024 22:16:36 +0100
parents 44599695df41
children c6b858f2e025
line wrap: on
line diff
--- a/Common/Inc/data_central.h	Thu Dec 19 18:58:18 2024 +0100
+++ b/Common/Inc/data_central.h	Thu Dec 19 22:16:36 2024 +0100
@@ -180,6 +180,14 @@
 	uint8_t signalQual[4];	/* signal quality indicator for x sats */
 } SGnssInfo;
 
+typedef enum
+{
+	SE_INIT = 0,
+	SE_REINIT,
+	SE_ACTIVE,
+	SE_END
+} SSlowExitState;
+
 
 /* struct SLifeData
  * contains data all actual data (pressure, stuturation, etc. as received from second ship
@@ -570,5 +578,6 @@
 void convertStringOfDate_DDMMYY(char* pString, uint8_t strLen, uint8_t day, uint8_t month, uint8_t year);
 void getStringOfFormat_DDMMYY(char* pString, uint8_t strLen);
 
+uint8_t calculateSlowExit(uint16_t* pCountDownSec, float* pExitDepthMeter, uint8_t* pColor);
 
 #endif // DATA_CENTRAL_H