![]() |
MatrixMiniR4 1.1.5
Matrix Mini R4 Arduino Library API Documentation
|
Class for motion sensing using an IMU (Inertial Measurement Unit). More...
#include <MiniR4Motion.h>
Public Types | |
enum class | AxisType { X , Y , Z , Roll , Pitch , Yaw } |
Public Member Functions | |
MiniR4Motion () | |
double | getGyro (AxisType axis) |
Gets the gyro value for a specified axis. | |
double | getAccel (AxisType axis) |
Gets the accelerometer value for a specified axis. | |
int16_t | getEuler (AxisType axis) |
Gets the Euler angle for a specified axis. | |
bool | resetIMUValues (void) |
Resets the IMU values to zero. | |
Class for motion sensing using an IMU (Inertial Measurement Unit).
Note: This Class is for Controller built-in IMU (PU6050) control by Lower MCU (STM32)
This class provides methods to retrieve gyro, accelerometer, and Euler angles data from the IMU. It also allows resetting the IMU values to zero.
Definition at line 19 of file MiniR4Motion.h.
|
strong |
Enumerator | |
---|---|
X | |
Y | |
Z | |
Roll | |
Pitch | |
Yaw |
Definition at line 24 of file MiniR4Motion.h.
|
inline |
Definition at line 22 of file MiniR4Motion.h.
|
inline |
Gets the accelerometer value for a specified axis.
axis | The axis for which to retrieve the accelerometer value (X, Y, Z). |
Definition at line 61 of file MiniR4Motion.h.
|
inline |
Gets the Euler angle for a specified axis.
axis | The axis for which to retrieve the Euler angle (Roll, Pitch, Yaw). |
Definition at line 82 of file MiniR4Motion.h.
|
inline |
Gets the gyro value for a specified axis.
axis | The axis for which to retrieve the gyro value (X, Y, Z). |
Definition at line 40 of file MiniR4Motion.h.
|
inline |
Resets the IMU values to zero.
Definition at line 102 of file MiniR4Motion.h.