WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
IMU.h File Reference
#include <stdint.h>
#include "hal/IMUTypes.h"

Go to the source code of this file.

Functions

void HAL_GetIMUAcceleration (HAL_Acceleration3d *accel, int32_t *status)
 Get the acceleration along the axes of the IMU in meters per second squared.
 
void HAL_GetIMUGyroRates (HAL_GyroRate3d *rates, int32_t *status)
 Get the angular rate about the axes of the IMU in radians per second.
 
void HAL_GetIMUEulerAnglesFlat (HAL_EulerAngles3d *angles, int32_t *status)
 Get the angle, in radians, about the axes of the IMU in the "flat" orientation.
 
void HAL_GetIMUEulerAnglesLandscape (HAL_EulerAngles3d *angles, int32_t *status)
 Get the angle, in radians, about the axes of the IMU in the "landscape" orientation.
 
void HAL_GetIMUEulerAnglesPortrait (HAL_EulerAngles3d *angles, int32_t *status)
 Get the angle, in radians, about the axes of the IMU in the "portrait" orientation.
 
void HAL_GetIMUQuaternion (HAL_Quaternion *quat, int32_t *status)
 Get the orientation of the IMU as a quaternion.
 
double HAL_GetIMUYawFlat (int64_t *timestamp)
 Get the yaw value, in radians, of the IMU in the "flat" orientation.
 
double HAL_GetIMUYawLandscape (int64_t *timestamp)
 Get the yaw value, in radians, of the IMU in the "landscape" orientation.
 
double HAL_GetIMUYawPortrait (int64_t *timestamp)
 Get the yaw value, in radians, of the IMU in the "portrait" orientation.