API for the hub built-in IMU.
More...
API for the hub built-in IMU.
◆ hub_imu_get_acceleration()
void hub_imu_get_acceleration |
( |
float |
accel[3] | ) |
|
Get the acceleration by the IMU.
- Parameters
-
accel | Float array to store the x/y/z axes acceleration[mm/s^2]. |
◆ hub_imu_get_angular_velocity()
void hub_imu_get_angular_velocity |
( |
float |
angv[3] | ) |
|
Get the angular velocity by the IMU.
- Parameters
-
angv | Float array to store the x/y/z axes angular velocity [°/s]. |
◆ hub_imu_get_temperature()
float hub_imu_get_temperature |
( |
void |
| ) |
|
Get the temperature by the IMU.
- Return values
-
◆ hub_imu_init()
pbio_error_t hub_imu_init |
( |
void |
| ) |
|
Initialize the IMU driver.
- Return values
-
PBIO_SUCCESS | Successfully initialized. |
PBIO_ERROR_FAILED | Failed to initialized. |