-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathStatus.h
47 lines (38 loc) · 1.04 KB
/
Status.h
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef _STATUS_H_
#define _STATUS_H_
#include <Eigen/Dense>
using namespace Eigen;
struct Status
{
// GY87 raw data
Vector3f accRaw;
Vector3f gyroRaw;
Vector3f compassRaw;
float temperature;
float pressure;
// GY87 caulculated data
float sonicVelocity;
float baroAltitude;
// Calibrated data from calibrator
Vector3f accCal;
Vector3f gyroCal;
Vector3f compassCal;
// TODO get these data
Vector3f GPSPosition;
Vector3f GPSVelocity;
float sonarDistance;
// Device data sanity checker and validator
bool acc = true;
bool gyro = true;
bool compass = true;
bool baro = true;
bool GPSP = false;
bool GPSV = false;
bool sonar = false;
// Optical flow
// std::atomic<float> opticalVelocity[2]; // [vx, vy]
// Starting conditions
float startAttitude[3]; // [Yaw, pitch, roll]
float startAltitude;
};
#endif // _STATUS_H_