42 double x = 0, y = 0, z = 0;
63 double x = 0, y = 0, z = 0;
84 int16_t roll = 0, pitch = 0, yaw = 0;
Handling the Lower MCU (STM32) communication.
RESULT GetIMUGyro(double &x, double &y, double &z)
RESULT GetIMUAcc(double &x, double &y, double &z)
RESULT GetIMUEuler(int16_t &roll, int16_t &pitch, int16_t &yaw)
RESULT SetIMUToZero(void)
Class for motion sensing using an IMU (Inertial Measurement Unit).
int16_t getEuler(AxisType axis)
Gets the Euler angle for a specified axis.
bool resetIMUValues(void)
Resets the IMU values to zero.
double getAccel(AxisType axis)
Gets the accelerometer value for a specified axis.
double getGyro(AxisType axis)
Gets the gyro value for a specified axis.