SPIKE-RT C API Reference [Japanese]
An RTOS-based software platform for LEGO® Education SPIKE™.
|
ハブ内蔵IMU向けAPI. [詳解]
関数 | |
pbio_error_t | hub_imu_init (void) |
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から温度を取得する. [詳解] | |
ハブ内蔵IMU向けAPI.
void hub_imu_get_acceleration | ( | float | accel[3] | ) |
IMUから加速度を取得する.
accel | x/y/z軸の加速度を格納するためのfloat配列[mm/s^2]. |
void hub_imu_get_angular_velocity | ( | float | angv[3] | ) |
IMUから角速度を取得する.
angv | x/y/z軸の角速度を格納するためのfloat配列[°/s]. |
float hub_imu_get_temperature | ( | void | ) |
IMUから温度を取得する.
温度 | [℃]. |
pbio_error_t hub_imu_init | ( | void | ) |
IMUドライバを初期化する.
PBIO_SUCCESS | 初期化が完了. |
PBIO_ERROR_FAILED | 初期化に失敗した. |