TR-mbed 1.0
Loading...
Searching...
No Matches
IMU.h
Go to the documentation of this file.
1#include "mbed.h"
2#include "util/peripherals/Sensor.h"
3
4class IMU: public Sensor
5{
6public:
8 {
9 float yaw;
10 float pitch;
11 float roll;
12 };
13
15 {
16 float w; // Scalar
17 float x;
18 float y;
19 float z;
20 };
21
22 void init();
23 virtual EulerAngles read();
25 void reset();
26};
Definition IMU.h:5
virtual EulerAngles read()
void init()
virtual EulerAngles getImuAngles()
void reset()
Definition IMU.h:8
float roll
Definition IMU.h:11
float pitch
Definition IMU.h:10
float yaw
Definition IMU.h:9
Definition IMU.h:15
float x
Definition IMU.h:17
float z
Definition IMU.h:19
float y
Definition IMU.h:18
float w
Definition IMU.h:16