#include <imu.h>
◆ Imu()
| Device::Imu::Imu |
( |
Robot & | robot | ) |
|
|
explicit |
◆ ~Imu()
◆ get_gyro_values()
| vector3 Device::Imu::get_gyro_values |
( |
| ) |
const |
|
inlinenodiscard |
Retrieves the gyro values from the last measurement.
- Returns
- A 3D vector struct of the x, y and z components of the gyroscope
◆ get_quaternion()
Retrieves the quaternion from the last measurement.
- Returns
- The last read quaternion
◆ initialize()
| void Device::Imu::initialize |
( |
| ) |
|
Sets up the necessary I2C channel.
◆ read_fifo_buffer()
| void Device::Imu::read_fifo_buffer |
( |
| ) |
|
Reads the current FIFO buffer from the IMUs DMP (digital motion processor).
The documentation for this class was generated from the following files: