-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdynamics.h
More file actions
70 lines (54 loc) · 1.17 KB
/
dynamics.h
File metadata and controls
70 lines (54 loc) · 1.17 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef DYNAMICS_H
#define DYNAMICS_H
#include <chrono>
#include <string>
#include <sstream>
#include "geometry.h"
#include "work-queue.h"
using namespace std;
using namespace std::chrono;
struct Dynamics {
public:
Dynamics();
static bool from_log_string(Dynamics &d, const StampedString &s);
string display_string();
system_clock::time_point datetime;
int str; // steering
int esc; // esc
// acceleration
double ax;
double ay;
double az;
unsigned int spur_last_us;
int spur_odo;
char control_mode;
int odo_fl_a;
unsigned int odo_fl_a_us;
int odo_fl_b;
unsigned int odo_fl_b_us;
int odo_fr_a;
unsigned int odo_fr_a_us;
int odo_fr_b;
unsigned int odo_fr_b_us;
int odo_bl_a;
unsigned int odo_bl_a_us;
int odo_bl_b;
unsigned int odo_bl_b_us;
int odo_br_a;
unsigned int odo_br_a_us;
int odo_br_b;
unsigned int odo_br_b_us;
unsigned int ms;
unsigned int us;
Angle yaw;
Angle pitch;
Angle roll;
double battery_voltage;
int calibration_status;
bool go;
double mpu_temperature = NAN;
static std::string csv_field_headers();
std::string csv_fields();
};
void test_dynamics();
#endif // DYNAMICS_H