![]() |
WPILibC++ 2027.0.0-alpha-2
|
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. | |
void HAL_GetIMUAcceleration | ( | HAL_Acceleration3d * | accel, |
int32_t * | status ) |
Get the acceleration along the axes of the IMU in meters per second squared.
[out] | accel | the acceleration data |
[out] | status | the error code, or 0 for success |
void HAL_GetIMUEulerAnglesFlat | ( | HAL_EulerAngles3d * | angles, |
int32_t * | status ) |
Get the angle, in radians, about the axes of the IMU in the "flat" orientation.
[out] | angles | the angle data |
[out] | status | the error code, or 0 for success |
void HAL_GetIMUEulerAnglesLandscape | ( | HAL_EulerAngles3d * | angles, |
int32_t * | status ) |
Get the angle, in radians, about the axes of the IMU in the "landscape" orientation.
[out] | angles | the angle data |
[out] | status | the error code, or 0 for success |
void HAL_GetIMUEulerAnglesPortrait | ( | HAL_EulerAngles3d * | angles, |
int32_t * | status ) |
Get the angle, in radians, about the axes of the IMU in the "portrait" orientation.
[out] | angles | the angle data |
[out] | status | the error code, or 0 for success |
void HAL_GetIMUGyroRates | ( | HAL_GyroRate3d * | rates, |
int32_t * | status ) |
Get the angular rate about the axes of the IMU in radians per second.
[out] | rates | the angular rate data |
[out] | status | the error code, or 0 for success |
void HAL_GetIMUQuaternion | ( | HAL_Quaternion * | quat, |
int32_t * | status ) |
Get the orientation of the IMU as a quaternion.
[out] | quat | the quaternion |
[out] | status | the error code, or 0 for success |
double HAL_GetIMUYawFlat | ( | int64_t * | timestamp | ) |
Get the yaw value, in radians, of the IMU in the "flat" orientation.
[out] | timestamp | the timestamp of the sample |
double HAL_GetIMUYawLandscape | ( | int64_t * | timestamp | ) |
Get the yaw value, in radians, of the IMU in the "landscape" orientation.
[out] | timestamp | the timestamp of the sample |
double HAL_GetIMUYawPortrait | ( | int64_t * | timestamp | ) |
Get the yaw value, in radians, of the IMU in the "portrait" orientation.
[out] | timestamp | the timestamp of the sample |