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