|
SPIKE-RT C API Reference [English]
An RTOS-based software platform for LEGO® Education SPIKE™.
|
API for the hub built-in IMU. More...
#include <stdint.h>#include <stdbool.h>#include <pbio/error.h>Go to the source code of this file.
Functions | |
| pbio_error_t | hub_imu_init (void) |
| Initialize the IMU driver. | |
| bool | hub_imu_is_ready (void) |
| Check if the IMU module is "ready.". | |
| bool | hub_imu_is_stationary (void) |
| Check if the IMU module is "stationary.". | |
| void | hub_imu_set_tilt (float angle) |
| Set the tilt angle of the IMU module. | |
| void | hub_imu_get_acceleration (float accel[3]) |
| Get the acceleration by the IMU. | |
| void | hub_imu_get_angular_velocity (float angv[3]) |
| Get the angular velocity by the IMU. | |
| float | hub_imu_get_temperature (void) |
| Get the temperature by the IMU. | |
| float | hub_imu_get_heading (void) |
| Get the heading angle of the IMU. | |
| void | hub_imu_reset_heading (void) |
| Reset the heading angle of the IMU. | |
API for the hub built-in IMU.