Defines |
#define | IMU_CALIBRATION_TYPE_ACCELEROMETER_BIAS 1 |
#define | IMU_CALIBRATION_TYPE_ACCELEROMETER_GAIN 0 |
#define | IMU_CALIBRATION_TYPE_GYROSCOPE_BIAS 5 |
#define | IMU_CALIBRATION_TYPE_GYROSCOPE_GAIN 4 |
#define | IMU_CALIBRATION_TYPE_MAGNETOMETER_BIAS 3 |
#define | IMU_CALIBRATION_TYPE_MAGNETOMETER_GAIN 2 |
#define | IMU_CALLBACK_ACCELERATION 31 |
#define | IMU_CALLBACK_ALL_DATA 34 |
#define | IMU_CALLBACK_ANGULAR_VELOCITY 33 |
#define | IMU_CALLBACK_MAGNETIC_FIELD 32 |
#define | IMU_CALLBACK_ORIENTATION 35 |
#define | IMU_CALLBACK_QUATERNION 36 |
#define | IMU_DEVICE_IDENTIFIER 16 |
#define | IMU_FUNCTION_ARE_LEDS_ON 10 |
#define | IMU_FUNCTION_GET_ACCELERATION 1 |
#define | IMU_FUNCTION_GET_ACCELERATION_PERIOD 20 |
#define | IMU_FUNCTION_GET_ACCELERATION_RANGE 12 |
#define | IMU_FUNCTION_GET_ALL_DATA 4 |
#define | IMU_FUNCTION_GET_ALL_DATA_PERIOD 26 |
#define | IMU_FUNCTION_GET_ANGULAR_VELOCITY 3 |
#define | IMU_FUNCTION_GET_ANGULAR_VELOCITY_PERIOD 24 |
#define | IMU_FUNCTION_GET_CALIBRATION 18 |
#define | IMU_FUNCTION_GET_CHIP_TEMPERATURE 242 |
#define | IMU_FUNCTION_GET_CONVERGENCE_SPEED 16 |
#define | IMU_FUNCTION_GET_IDENTITY 255 |
#define | IMU_FUNCTION_GET_IMU_TEMPERATURE 7 |
#define | IMU_FUNCTION_GET_MAGNETIC_FIELD 2 |
#define | IMU_FUNCTION_GET_MAGNETIC_FIELD_PERIOD 22 |
#define | IMU_FUNCTION_GET_MAGNETOMETER_RANGE 14 |
#define | IMU_FUNCTION_GET_ORIENTATION 5 |
#define | IMU_FUNCTION_GET_ORIENTATION_PERIOD 28 |
#define | IMU_FUNCTION_GET_PROTOCOL1_BRICKLET_NAME 241 |
#define | IMU_FUNCTION_GET_QUATERNION 6 |
#define | IMU_FUNCTION_GET_QUATERNION_PERIOD 30 |
#define | IMU_FUNCTION_IS_ORIENTATION_CALCULATION_ON 39 |
#define | IMU_FUNCTION_LEDS_OFF 9 |
#define | IMU_FUNCTION_LEDS_ON 8 |
#define | IMU_FUNCTION_ORIENTATION_CALCULATION_OFF 38 |
#define | IMU_FUNCTION_ORIENTATION_CALCULATION_ON 37 |
#define | IMU_FUNCTION_RESET 243 |
#define | IMU_FUNCTION_SET_ACCELERATION_PERIOD 19 |
#define | IMU_FUNCTION_SET_ACCELERATION_RANGE 11 |
#define | IMU_FUNCTION_SET_ALL_DATA_PERIOD 25 |
#define | IMU_FUNCTION_SET_ANGULAR_VELOCITY_PERIOD 23 |
#define | IMU_FUNCTION_SET_CALIBRATION 17 |
#define | IMU_FUNCTION_SET_CONVERGENCE_SPEED 15 |
#define | IMU_FUNCTION_SET_MAGNETIC_FIELD_PERIOD 21 |
#define | IMU_FUNCTION_SET_MAGNETOMETER_RANGE 13 |
#define | IMU_FUNCTION_SET_ORIENTATION_PERIOD 27 |
#define | IMU_FUNCTION_SET_QUATERNION_PERIOD 29 |
Typedefs |
typedef Device | IMU |
Functions |
int | imu_are_leds_on (IMU *imu, bool *ret_leds) |
void | imu_create (IMU *imu, const char *uid, IPConnection *ipcon) |
void | imu_destroy (IMU *imu) |
int | imu_get_acceleration (IMU *imu, int16_t *ret_x, int16_t *ret_y, int16_t *ret_z) |
int | imu_get_acceleration_period (IMU *imu, uint32_t *ret_period) |
int | imu_get_acceleration_range (IMU *imu, uint8_t *ret_range) |
int | imu_get_all_data (IMU *imu, int16_t *ret_acc_x, int16_t *ret_acc_y, int16_t *ret_acc_z, int16_t *ret_mag_x, int16_t *ret_mag_y, int16_t *ret_mag_z, int16_t *ret_ang_x, int16_t *ret_ang_y, int16_t *ret_ang_z, int16_t *ret_temperature) |
int | imu_get_all_data_period (IMU *imu, uint32_t *ret_period) |
int | imu_get_angular_velocity (IMU *imu, int16_t *ret_x, int16_t *ret_y, int16_t *ret_z) |
int | imu_get_angular_velocity_period (IMU *imu, uint32_t *ret_period) |
int | imu_get_api_version (IMU *imu, uint8_t ret_api_version[3]) |
int | imu_get_calibration (IMU *imu, uint8_t typ, int16_t ret_data[10]) |
int | imu_get_chip_temperature (IMU *imu, int16_t *ret_temperature) |
int | imu_get_convergence_speed (IMU *imu, uint16_t *ret_speed) |
int | imu_get_identity (IMU *imu, char ret_uid[8], char ret_connected_uid[8], char *ret_position, uint8_t ret_hardware_version[3], uint8_t ret_firmware_version[3], uint16_t *ret_device_identifier) |
int | imu_get_imu_temperature (IMU *imu, int16_t *ret_temperature) |
int | imu_get_magnetic_field (IMU *imu, int16_t *ret_x, int16_t *ret_y, int16_t *ret_z) |
int | imu_get_magnetic_field_period (IMU *imu, uint32_t *ret_period) |
int | imu_get_magnetometer_range (IMU *imu, uint8_t *ret_range) |
int | imu_get_orientation (IMU *imu, int16_t *ret_roll, int16_t *ret_pitch, int16_t *ret_yaw) |
int | imu_get_orientation_period (IMU *imu, uint32_t *ret_period) |
int | imu_get_protocol1_bricklet_name (IMU *imu, char port, uint8_t *ret_protocol_version, uint8_t ret_firmware_version[3], char ret_name[40]) |
int | imu_get_quaternion (IMU *imu, float *ret_x, float *ret_y, float *ret_z, float *ret_w) |
int | imu_get_quaternion_period (IMU *imu, uint32_t *ret_period) |
int | imu_get_response_expected (IMU *imu, uint8_t function_id, bool *ret_response_expected) |
int | imu_is_orientation_calculation_on (IMU *imu, bool *ret_orientation_calculation_on) |
int | imu_leds_off (IMU *imu) |
int | imu_leds_on (IMU *imu) |
int | imu_orientation_calculation_off (IMU *imu) |
int | imu_orientation_calculation_on (IMU *imu) |
void | imu_register_callback (IMU *imu, uint8_t id, void *callback, void *user_data) |
int | imu_reset (IMU *imu) |
int | imu_set_acceleration_period (IMU *imu, uint32_t period) |
int | imu_set_acceleration_range (IMU *imu, uint8_t range) |
int | imu_set_all_data_period (IMU *imu, uint32_t period) |
int | imu_set_angular_velocity_period (IMU *imu, uint32_t period) |
int | imu_set_calibration (IMU *imu, uint8_t typ, int16_t data[10]) |
int | imu_set_convergence_speed (IMU *imu, uint16_t speed) |
int | imu_set_magnetic_field_period (IMU *imu, uint32_t period) |
int | imu_set_magnetometer_range (IMU *imu, uint8_t range) |
int | imu_set_orientation_period (IMU *imu, uint32_t period) |
int | imu_set_quaternion_period (IMU *imu, uint32_t period) |
int | imu_set_response_expected (IMU *imu, uint8_t function_id, bool response_expected) |
int | imu_set_response_expected_all (IMU *imu, bool response_expected) |