![]() |
MatrixMiniR4 1.1.4
Matrix Mini R4 Arduino Library API Documentation
|
Class for motion sensing using a Matrix Motion sensor. More...
#include <MiniR4MotionExt.h>
Public Member Functions | |
bool | begin () |
Initializes the MatrixMotion sensor. | |
int | getRoll () |
Gets the roll angle from the motion sensor. | |
int | getPitch () |
Gets the pitch angle from the motion sensor. | |
int | getYaw () |
Gets the yaw angle from the motion sensor. | |
int | getGyro (AxisType axis) |
Gets the gyro value for a specified axis. | |
int | getAccel (AxisType axis) |
Gets the accelerometer value for a specified axis. | |
Public Attributes | |
int8_t | _ch = 0 |
TwoWire * | _pWire |
Class for motion sensing using a Matrix Motion sensor.
Note: This Class is for Matrix Motion Sensor (LSM6DS3)
This class provides methods to retrieve roll, pitch, yaw, gyro, and accelerometer data from the motion sensor over I2C.
Definition at line 33 of file MiniR4MotionExt.h.
bool MatrixMotion::begin | ( | ) |
Initializes the MatrixMotion sensor.
Definition at line 9 of file MiniR4MotionExt.cpp.
int MatrixMotion::getAccel | ( | AxisType | axis | ) |
Gets the accelerometer value for a specified axis.
axis | The axis for which to retrieve the accelerometer value (x, y, z). |
Definition at line 58 of file MiniR4MotionExt.cpp.
int MatrixMotion::getGyro | ( | AxisType | axis | ) |
Gets the gyro value for a specified axis.
axis | The axis for which to retrieve the gyro value (x, y, z). |
Definition at line 45 of file MiniR4MotionExt.cpp.
int MatrixMotion::getPitch | ( | ) |
Gets the pitch angle from the motion sensor.
Definition at line 31 of file MiniR4MotionExt.cpp.
int MatrixMotion::getRoll | ( | ) |
Gets the roll angle from the motion sensor.
Definition at line 24 of file MiniR4MotionExt.cpp.
int MatrixMotion::getYaw | ( | ) |
Gets the yaw angle from the motion sensor.
Definition at line 38 of file MiniR4MotionExt.cpp.
int8_t MatrixMotion::_ch = 0 |
Definition at line 65 of file MiniR4MotionExt.h.
TwoWire* MatrixMotion::_pWire |
Definition at line 66 of file MiniR4MotionExt.h.