7#ifndef SPIKE_CPP_API_IMU_H_
8#define SPIKE_CPP_API_IMU_H_
bool isStationary() const
Definition IMU.h:78
void setTilt(float angle)
Definition IMU.h:86
void getAngularVelocity(AngularVelocity &ang)
Definition IMU.cpp:25
bool isReady() const
Definition IMU.h:70
float getTemperature() const
Definition IMU.h:62
bool hasError()
Definition IMU.h:109
float getHeading() const
Definition IMU.h:94
IMU(void)
Definition IMU.h:41
void resetHeading()
Definition IMU.h:101
void getAcceleration(Acceleration &accel)
Definition IMU.cpp:16
pbio_error_t hub_imu_init(void)
Initialize the IMU driver.
Definition imu.c:32
bool hub_imu_is_ready(void)
Check if the IMU module is "ready.".
Definition imu.c:70
bool hub_imu_is_stationary(void)
Check if the IMU module is "stationary.".
Definition imu.c:74
void hub_imu_reset_heading(void)
Reset the heading angle of the IMU.
Definition imu.c:103
float hub_imu_get_heading(void)
Get the heading angle of the IMU.
Definition imu.c:99
void hub_imu_set_tilt(float angle)
Set the tilt angle of the IMU module.
Definition imu.c:78
float hub_imu_get_temperature(void)
Get the temperature by the IMU.
Definition imu.c:95
API for the hub built-in IMU.