Mercurial > public > ostc4
diff Small_CPU/Src/GNSS.c @ 899:2225c467f1e9 Evo_2_23
Added data path and visualization for position data:
The GNSS data exchange is now initialized and triggered on a cyclic basis (once a second). RTE verion has been increased because of interface change. For now only the position data is shown in a T7 surface views. The functionality may be switched on/off using the compile switch ENABLE_GNSS.
author | Ideenmodellierer |
---|---|
date | Mon, 30 Sep 2024 21:56:05 +0200 |
parents | 17f02ac9da67 |
children | c0553dd70608 |
line wrap: on
line diff
--- a/Small_CPU/Src/GNSS.c Thu Sep 26 18:40:41 2024 +0200 +++ b/Small_CPU/Src/GNSS.c Mon Sep 30 21:56:05 2024 +0200 @@ -61,11 +61,14 @@ * Searching for a header in data buffer and matching class and message ID to buffer data. * @param GNSS Pointer to main GNSS structure. */ -void GNSS_ParseBuffer(GNSS_StateHandle *GNSS) { +uint8_t GNSS_ParseBuffer(GNSS_StateHandle *GNSS) { + + uint8_t DataReceived = 0; for (int var = 0; var <= 100; ++var) { if (GNSS->uartWorkingBuffer[var] == 0xB5 && GNSS->uartWorkingBuffer[var + 1] == 0x62) { + DataReceived = 1; if (GNSS->uartWorkingBuffer[var + 2] == 0x27 && GNSS->uartWorkingBuffer[var + 3] == 0x03) { //Look at: 32.19.1.1 u-blox 8 Receiver description GNSS_ParseUniqID(GNSS); @@ -81,6 +84,7 @@ } } } + return DataReceived; } /*!