36 PRINT_CONFIG_VAR(IMU_LSM_SPI_SLAVE_IDX)
37 PRINT_CONFIG_VAR(IMU_L3G_SPI_SLAVE_IDX)
38 PRINT_CONFIG_VAR(IMU_PX4FMU_SPI_DEV)
49 #if !IMU_PX4_DISABLE_MAG
59 #if !IMU_PX4_DISABLE_MAG
91 #if !IMU_PX4_DISABLE_MAG
void l3gd20_spi_event(struct L3gd20_Spi *l3g)
#define VECT3_COPY(_a, _b)
Main include for ABI (AirBorneInterface).
Register defs for ST LSM303D 3D accelerometer and magnetometer.
void l3gd20_spi_init(struct L3gd20_Spi *l3g, struct spi_periph *spi_p, uint8_t slave_idx)
struct Imu imu
global IMU state
union Lsm303d_Spi::@308 data_accel
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 Lsm303d_Spi lsm_acc
struct Int32Rates gyro_unscaled
unscaled gyroscope measurements
ST L3GD20 3-axis gyroscope register definitions.
struct Int32Vect3 accel
accelerometer measurements in m/s^2 in BFP with INT32_ACCEL_FRAC
volatile bool data_available_mag
data ready flag magneto
volatile bool data_available_acc
data ready flag accelero
void lsm303d_spi_init(struct Lsm303d_Spi *lsm, struct spi_periph *spi_p, uint8_t slave_idx, enum Lsm303dTarget target)
struct Int32Vect3 mag
magnetometer measurements scaled to 1 in BFP with INT32_MAG_FRAC
Inertial Measurement Unit interface.
void imu_scale_gyro(struct Imu *_imu)
volatile bool data_available
data ready flag
void lsm303d_spi_event(struct Lsm303d_Spi *lsm)
void imu_px4_periodic(void)
void imu_scale_mag(struct Imu *_imu)
struct Lsm303d_Spi lsm_mag
int32_t p
in rad/s with INT32_RATE_FRAC
struct Int32Vect3 accel_unscaled
unscaled accelerometer measurements
union Lsm303d_Spi::@309 data_mag
void imu_scale_accel(struct Imu *_imu)
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
int32_t q
in rad/s with INT32_RATE_FRAC
union L3gd20_Spi::@306 data_rates
static void lsm303d_spi_periodic(struct Lsm303d_Spi *lsm)
convenience function: read or start configuration if not already initialized
struct Int32Rates gyro
gyroscope measurements in rad/s in BFP with INT32_RATE_FRAC