SPIKE-RT C API Reference [English]
An RTOS-based software platform for LEGO® Education SPIKE™.
Functions
imu.h File Reference

API for the hub built-in IMU. More...

#include <stdint.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. More...
 
void hub_imu_get_acceleration (float accel[3])
 Get the acceleration by the IMU. More...
 
void hub_imu_get_angular_velocity (float angv[3])
 Get the angular velocity by the IMU. More...
 
float hub_imu_get_temperature (void)
 Get the temperature by the IMU. More...
 

Detailed Description

API for the hub built-in IMU.

Author
Shu Yoshifumi