SPIKE-RT C API Reference [Japanese]
An RTOS-based software platform for LEGO® Education SPIKE™.
読み取り中…
検索中…
一致する文字列を見つけられません
imu.h ファイル

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.

著者
Shu Yoshifumi, Makoto Shimojima