Mercurial > public > ostc4
comparison Common/Inc/data_central.h @ 1014:8c0134a287da GasConsumption
Add a log data event to the scrubber timer at the start of the dive and every time the timer (in minutes)
is decremented. The event contains a 12 bit signed integer for the remaining scrubber duration, and two
flags for scrubber warning (0x2000, <= 30 minutes remaining) and scrubber error (0x4000, <= 0 minutes remaining).
(mikeller)
| author | heinrichsweikamp |
|---|---|
| date | Sun, 11 May 2025 16:18:20 +0200 |
| parents | 8507a87f6401 |
| children | 677d293c669f |
comparison
equal
deleted
inserted
replaced
| 1013:fa1af49319e5 | 1014:8c0134a287da |
|---|---|
| 342 int16_t info_bailoutO2; | 342 int16_t info_bailoutO2; |
| 343 int16_t compassHeadingUpdate; | 343 int16_t compassHeadingUpdate; |
| 344 uint16_t info_compassHeadingUpdate; | 344 uint16_t info_compassHeadingUpdate; |
| 345 int16_t gnssPositionUpdate; | 345 int16_t gnssPositionUpdate; |
| 346 SGnssCoord info_gnssPosition; | 346 SGnssCoord info_gnssPosition; |
| 347 int16_t scrubberState; | |
| 348 uint16_t info_scrubberState; | |
| 347 } SEvents; | 349 } SEvents; |
| 348 | 350 |
| 349 | 351 |
| 350 | 352 |
| 351 //struct SDiveSettings | 353 //struct SDiveSettings |
| 596 void getStringOfFormat_DDMMYY(char* pString, uint8_t strLen); | 598 void getStringOfFormat_DDMMYY(char* pString, uint8_t strLen); |
| 597 void convertUTCToLocal(uint8_t utcHours, uint8_t utcMinutes, uint8_t* pLocalHours, uint8_t* pLocalMinutes); | 599 void convertUTCToLocal(uint8_t utcHours, uint8_t utcMinutes, uint8_t* pLocalHours, uint8_t* pLocalMinutes); |
| 598 | 600 |
| 599 uint8_t calculateSlowExit(uint16_t* pCountDownSec, float* pExitDepthMeter, uint8_t* pColor); | 601 uint8_t calculateSlowExit(uint16_t* pCountDownSec, float* pExitDepthMeter, uint8_t* pColor); |
| 600 | 602 |
| 603 bool isScrubberTimerEnabled(const SSettings *settings); | |
| 604 bool isScrubberTimerRunning(const SDiveState *diveState, const SSettings *settings); | |
| 601 #endif // DATA_CENTRAL_H | 605 #endif // DATA_CENTRAL_H |
