37 PRINT_CONFIG_VAR(IMU_LSM_SPI_SLAVE_IDX)
38 PRINT_CONFIG_VAR(IMU_L3G_SPI_SLAVE_IDX)
39 PRINT_CONFIG_VAR(IMU_PX4FMU_SPI_DEV)
52 #if !IMU_PX4_DISABLE_MAG
63 #if !IMU_PX4_DISABLE_MAG
96 #if !IMU_PX4_DISABLE_MAG
void lsm303dlhc_spi_event(struct Lsm303dlhc_Spi *lsm)
void imu_scale_gyro(struct Imu *_imu)
void l3gd20_spi_event(struct L3gd20_Spi *l3g)
static void lsm303dlhc_spi_periodic(struct Lsm303dlhc_Spi *lsm)
convenience function: read or start configuration if not already initialized
void imu_scale_accel(struct Imu *_imu)
#define VECT3_COPY(_a, _b)
Main include for ABI (AirBorneInterface).
void l3gd20_spi_init(struct L3gd20_Spi *l3g, struct spi_periph *spi_p, uint8_t slave_idx)
struct Imu imu
global IMU state
struct Lsm303dlhc_Spi lsm_acc
Register defs for ST LSM303DLHC 3D accelerometer and magnetometer.
static void l3gd20_spi_periodic(struct L3gd20_Spi *l3g)
convenience function: read or start configuration if not already initialized
Architecture independent SPI (Serial Peripheral Interface) API.
struct Int32Vect3 mag_unscaled
unscaled magnetometer measurements
int32_t r
in rad/s with INT32_RATE_FRAC
struct Int32Rates gyro_unscaled
unscaled gyroscope measurements
ST L3GD20 3-axis gyroscope register definitions.
volatile bool data_available_acc
data ready flag accelero
struct Int32Vect3 accel
accelerometer measurements in m/s^2 in BFP with INT32_ACCEL_FRAC
union Lsm303dlhc_Spi::@310 data_mag
union Lsm303dlhc_Spi::@309 data_accel
struct Lsm303dlhc_Spi lsm_mag
struct Int32Vect3 mag
magnetometer measurements scaled to 1 in BFP with INT32_MAG_FRAC
Inertial Measurement Unit interface.
volatile bool data_available
data ready flag
void imu_px4_periodic(void)
volatile bool data_available_mag
data ready flag magneto
void imu_scale_mag(struct Imu *_imu)
int32_t p
in rad/s with INT32_RATE_FRAC
struct Int32Vect3 accel_unscaled
unscaled accelerometer measurements
void lsm303dlhc_spi_init(struct Lsm303dlhc_Spi *lsm, struct spi_periph *spi_p, uint8_t slave_idx, enum Lsm303dlhcTarget target)
union L3gd20_Spi::@304 data_rates
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
int32_t q
in rad/s with INT32_RATE_FRAC
struct Int32Rates gyro
gyroscope measurements in rad/s in BFP with INT32_RATE_FRAC