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