27 lines
765 B
C
27 lines
765 B
C
#ifndef GPSDATA_H
|
|
#define GPSDATA_H
|
|
|
|
#include "../../data/Timestamp.h"
|
|
|
|
struct GPSData {
|
|
|
|
/** time this measurement was received (NOT the GPS-time) */
|
|
Timestamp tsReceived;
|
|
|
|
float lat; // deg
|
|
float lon; // deg
|
|
float alt; // m above sea-level
|
|
|
|
float accuracy; // m [might be NAN]
|
|
float speed; // m/s [might be NAN]
|
|
|
|
GPSData() : ts(), lat(NAN), lon(NAN), alt(NAN), accuracy(NAN), speed(NAN) {;}
|
|
|
|
GPSData(const Timestamp ts, const float lat, const float lon, const float alt) : ts(ts), lat(lat), lon(lon), alt(alt), accuracy(NAN), speed(NAN) {;}
|
|
|
|
GPSData(const Timestamp ts, const float lat, const float lon, const float alt, const float accuracy) : ts(ts), lat(lat), lon(lon), alt(alt), accuracy(accuracy), speed(NAN) {;}
|
|
|
|
};
|
|
|
|
#endif // GPSDATA_H
|