fixed some issues

added new pose/turn detections
new helper classes
define-flags for libEigen
This commit is contained in:
2018-09-04 10:49:00 +02:00
parent f990485d44
commit 857d7a1553
51 changed files with 2149 additions and 207 deletions

View File

@@ -3,18 +3,19 @@
#include "../../data/Timestamp.h"
#include "../../geo/EarthPos.h"
#include "../../math/Floatingpoint.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
FPDefault lat; // deg
FPDefault lon; // deg
FPDefault alt; // m above sea-level
float accuracy; // m [might be NAN]
float speed; // m/s [might be NAN]
FPDefault accuracy; // m [might be NAN]
FPDefault speed; // m/s [might be NAN]
/** ctor for invalid/unknown data */
GPSData() : tsReceived(), lat(NAN), lon(NAN), alt(NAN), accuracy(NAN), speed(NAN) {;}
@@ -49,7 +50,7 @@ struct GPSData {
private:
static inline bool EQ_OR_NAN(const float a, const float b) {return (a==b) || ( (a!=a) && (b!=b) );}
static inline bool EQ_OR_NAN(const FPDefault a, const FPDefault b) {return (a==b) || ( (a!=a) && (b!=b) );}
};