|
SPIKE-RT C API Reference [Japanese]
An RTOS-based software platform for LEGO® Education SPIKE™.
|
API for the hub built-in IMU. [詳解]
#include <stdint.h>#include <stdbool.h>#include <pbio/error.h>関数 | |
| pbio_error_t | hub_imu_init (void) |
| IMUドライバを初期化する. | |
| bool | hub_imu_is_ready (void) |
| IMUモジュールが使用可能かチェックする. | |
| bool | hub_imu_is_stationary (void) |
| IMUモジュールが静止状態がチェックする. | |
| void | hub_imu_set_tilt (float angle) |
| IMUモジュールの傾斜角度をセットする. | |
| void | hub_imu_get_acceleration (float accel[3]) |
| IMUから加速度を取得する. | |
| void | hub_imu_get_angular_velocity (float angv[3]) |
| IMUから角速度を取得する. | |
| float | hub_imu_get_temperature (void) |
| IMUから温度を取得する. | |
| float | hub_imu_get_heading (void) |
| IMUの方位角を返す. | |
| void | hub_imu_reset_heading (void) |
| IMUの方位角をリセットする. | |
API for the hub built-in IMU.