Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Driver for the PX4FMU SPI1 for the MPU6000 and I2C2 for the HMC5883. More...
#include "std.h"
#include "generated/airframe.h"
#include "subsystems/imu.h"
#include "subsystems/imu/imu_mpu60x0_defaults.h"
#include "peripherals/mpu60x0_spi.h"
#include "peripherals/hmc58xx.h"
Go to the source code of this file.
Data Structures | |
struct | ImuPx4fmu |
Macros | |
#define | ImuEvent imu_px4fmu_event |
Functions | |
void | imu_px4fmu_event (void) |
Variables | |
struct ImuPx4fmu | imu_px4fmu |
Driver for the PX4FMU SPI1 for the MPU6000 and I2C2 for the HMC5883.
Definition in file imu_px4fmu.h.
struct ImuPx4fmu |
Definition at line 38 of file imu_px4fmu.h.
Data Fields | ||
---|---|---|
struct Hmc58xx | hmc | |
struct Mpu60x0_Spi | mpu |
#define ImuEvent imu_px4fmu_event |
Definition at line 47 of file imu_px4fmu.h.
void imu_px4fmu_event | ( | void | ) |
Definition at line 91 of file imu_px4fmu.c.
References Imu::accel, Imu::accel_unscaled, Hmc58xx::data, Mpu60x0_Spi::data_accel, Mpu60x0_Spi::data_available, Hmc58xx::data_available, Mpu60x0_Spi::data_rates, FALSE, get_sys_time_usec(), Imu::gyro, Imu::gyro_unscaled, ImuPx4fmu::hmc, hmc58xx_event(), imu, IMU_BOARD_ID, imu_px4fmu, imu_scale_accel(), imu_scale_gyro(), imu_scale_mag(), Imu::mag, Imu::mag_unscaled, ImuPx4fmu::mpu, mpu60x0_spi_event(), RATES_ASSIGN, VECT3_ASSIGN, Int32Vect3::x, Int32Vect3::y, and Int32Vect3::z.
struct ImuPx4fmu imu_px4fmu |
Definition at line 66 of file imu_px4fmu.c.
Referenced by imu_periodic(), and imu_px4fmu_event().