-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparsedpacket.h
More file actions
26 lines (22 loc) · 934 Bytes
/
parsedpacket.h
File metadata and controls
26 lines (22 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* @file parsedpacket.h
* @brief Deklaracja struktury ParsedPacket służącej do przechowywania danych odebranych z portu szeregowego.
*/
#ifndef PARSEDPACKET_H
#define PARSEDPACKET_H
#include <QVector>
#include <QString>
/**
* @struct ParsedPacket
* @brief Struktura reprezentująca paczkę danych odebraną z portu szeregowego.
*
* Przechowuje aktualne odczyty sensorów, informacje do logów oraz dane lokalizacyjne (jeśli obecne).
*/
struct ParsedPacket {
QVector<double> sensors; ///< Wektor wartości odczytanych z sensorów.
QString log; ///< Tekst do wyświetlenia w konsoli (log systemowy).
bool hasPosition; ///< Flaga wskazująca, czy pakiet zawiera dane GPS.
double latitude; ///< Szerokość geograficzna (jeśli hasPosition == true).
double longitude; ///< Długość geograficzna (jeśli hasPosition == true).
};
#endif // PARSEDPACKET_H