Mercurial > public > ostc4
comparison Common/Inc/data_central.h @ 949:c6b858f2e025 Evo_2_23
GNSS UTC in Date-Time menu:
The UTC time provided by the gnss module is not shown in the date-time settings menu. If a valid time signal is available then the OSTC RTC may be set to it by selecting the UTC menu entry. The time zone has to be selected manually. This is possible using a separate edit line.
author | Ideenmodellierer |
---|---|
date | Sun, 22 Dec 2024 21:19:21 +0100 |
parents | aad1a6b9aaec |
children |
comparison
equal
deleted
inserted
replaced
948:abdd72c8b567 | 949:c6b858f2e025 |
---|---|
169 { | 169 { |
170 float fLat; | 170 float fLat; |
171 float fLon; | 171 float fLon; |
172 }SGnssCoord; | 172 }SGnssCoord; |
173 | 173 |
174 | |
175 typedef struct | |
176 { | |
177 uint8_t year; | |
178 uint8_t month; | |
179 uint8_t day; | |
180 uint8_t hour; | |
181 uint8_t min; | |
182 uint8_t sec; | |
183 }SDateTime; | |
184 | |
174 typedef struct | 185 typedef struct |
175 { | 186 { |
176 SGnssCoord coord; | 187 SGnssCoord coord; |
177 uint8_t alive; | 188 uint8_t alive; |
178 uint8_t fixType; | 189 uint8_t fixType; |
179 uint8_t numSat; /* number of available satellites */ | 190 uint8_t numSat; /* number of available satellites */ |
180 uint8_t signalQual[4]; /* signal quality indicator for x sats */ | 191 uint8_t signalQual[4]; /* signal quality indicator for x sats */ |
192 SDateTime DateTime; /* UTC time information */ | |
181 } SGnssInfo; | 193 } SGnssInfo; |
182 | 194 |
183 typedef enum | 195 typedef enum |
184 { | 196 { |
185 SE_INIT = 0, | 197 SE_INIT = 0, |
575 | 587 |
576 uint8_t drawingColor_from_ascentspeed(float speed); | 588 uint8_t drawingColor_from_ascentspeed(float speed); |
577 | 589 |
578 void convertStringOfDate_DDMMYY(char* pString, uint8_t strLen, uint8_t day, uint8_t month, uint8_t year); | 590 void convertStringOfDate_DDMMYY(char* pString, uint8_t strLen, uint8_t day, uint8_t month, uint8_t year); |
579 void getStringOfFormat_DDMMYY(char* pString, uint8_t strLen); | 591 void getStringOfFormat_DDMMYY(char* pString, uint8_t strLen); |
592 void convertUTCToLocal(uint8_t utcHours, uint8_t utcMinutes, uint8_t* pLocalHours, uint8_t* pLocalMinutes); | |
580 | 593 |
581 uint8_t calculateSlowExit(uint16_t* pCountDownSec, float* pExitDepthMeter, uint8_t* pColor); | 594 uint8_t calculateSlowExit(uint16_t* pCountDownSec, float* pExitDepthMeter, uint8_t* pColor); |
582 | 595 |
583 #endif // DATA_CENTRAL_H | 596 #endif // DATA_CENTRAL_H |