comparison 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
comparison
equal deleted inserted replaced
944:44599695df41 945:aad1a6b9aaec
177 uint8_t alive; 177 uint8_t alive;
178 uint8_t fixType; 178 uint8_t fixType;
179 uint8_t numSat; /* number of available satellites */ 179 uint8_t numSat; /* number of available satellites */
180 uint8_t signalQual[4]; /* signal quality indicator for x sats */ 180 uint8_t signalQual[4]; /* signal quality indicator for x sats */
181 } SGnssInfo; 181 } SGnssInfo;
182
183 typedef enum
184 {
185 SE_INIT = 0,
186 SE_REINIT,
187 SE_ACTIVE,
188 SE_END
189 } SSlowExitState;
182 190
183 191
184 /* struct SLifeData 192 /* struct SLifeData
185 * contains data all actual data (pressure, stuturation, etc. as received from second ship 193 * contains data all actual data (pressure, stuturation, etc. as received from second ship
186 * and has actualGas to be send to Small CPU (second chip) 194 * and has actualGas to be send to Small CPU (second chip)
568 uint8_t drawingColor_from_ascentspeed(float speed); 576 uint8_t drawingColor_from_ascentspeed(float speed);
569 577
570 void convertStringOfDate_DDMMYY(char* pString, uint8_t strLen, uint8_t day, uint8_t month, uint8_t year); 578 void convertStringOfDate_DDMMYY(char* pString, uint8_t strLen, uint8_t day, uint8_t month, uint8_t year);
571 void getStringOfFormat_DDMMYY(char* pString, uint8_t strLen); 579 void getStringOfFormat_DDMMYY(char* pString, uint8_t strLen);
572 580
581 uint8_t calculateSlowExit(uint16_t* pCountDownSec, float* pExitDepthMeter, uint8_t* pColor);
573 582
574 #endif // DATA_CENTRAL_H 583 #endif // DATA_CENTRAL_H