|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Driver for the IMU on the Apogee board. More...
#include <math.h>#include "boards/apogee/imu_apogee.h"#include "mcu_periph/i2c.h"#include "led.h"#include "modules/core/abi.h"#include "generated/modules.h"#include "mcu_periph/uart.h"#include "pprzlink/messages.h"#include "modules/datalink/downlink.h"Go to the source code of this file.
Macros | |
| #define | IMU_APOGEE_CHAN_X 0 |
| #define | IMU_APOGEE_CHAN_Y 1 |
| #define | IMU_APOGEE_CHAN_Z 2 |
| #define | APOGEE_LOWPASS_FILTER MPU60X0_DLPF_42HZ |
| #define | APOGEE_SMPLRT_DIV 9 |
Functions | |
| bool | configure_baro_slave (Mpu60x0ConfigSet mpu_set, void *mpu) |
| void | imu_apogee_init (void) |
| void | imu_apogee_periodic (void) |
| void | imu_apogee_event (void) |
Variables | |
| struct ImuApogee | imu_apogee |
| #define APOGEE_LOWPASS_FILTER MPU60X0_DLPF_42HZ |
Definition at line 53 of file imu_apogee.c.
Referenced by imu_apogee_init().
| #define APOGEE_SMPLRT_DIV 9 |
Definition at line 54 of file imu_apogee.c.
Referenced by imu_apogee_init().
| #define IMU_APOGEE_CHAN_X 0 |
Definition at line 43 of file imu_apogee.c.
Referenced by imu_apogee_event().
| #define IMU_APOGEE_CHAN_Y 1 |
Definition at line 46 of file imu_apogee.c.
Referenced by imu_apogee_event().
| #define IMU_APOGEE_CHAN_Z 2 |
Definition at line 49 of file imu_apogee.c.
Referenced by imu_apogee_event().
| bool configure_baro_slave | ( | Mpu60x0ConfigSet | mpu_set, |
| void * | mpu ) |
Definition at line 90 of file imu_apogee.c.
Referenced by imu_apogee_init().
| void imu_apogee_event | ( | void | ) |
Definition at line 132 of file imu_apogee.c.
References ak8975_event(), get_sys_time_usec(), imu_apogee, IMU_APOGEE_CHAN_X, IMU_APOGEE_CHAN_Y, IMU_APOGEE_CHAN_Z, IMU_BOARD_ID, and mpu60x0_i2c_event().
| void imu_apogee_init | ( | void | ) |
Definition at line 95 of file imu_apogee.c.
References AK8975_I2C_SLV_ADDR, ak8975_init(), APOGEE_ACCEL_RANGE, APOGEE_GYRO_RANGE, APOGEE_LOWPASS_FILTER, APOGEE_SMPLRT_DIV, configure_baro_slave(), imu_apogee, IMU_BOARD_ID, imu_set_defaults_accel(), imu_set_defaults_gyro(), MPU60X0_ACCEL_SENS_F, MPU60X0_ADDR_ALT, MPU60X0_GYRO_SENS_F, and mpu60x0_i2c_init().
| void imu_apogee_periodic | ( | void | ) |
Definition at line 121 of file imu_apogee.c.
References ak8975_periodic(), imu_apogee, and mpu60x0_i2c_periodic().
| struct ImuApogee imu_apogee |
Definition at line 86 of file imu_apogee.c.
Referenced by baro_apogee_periodic(), imu_apogee_event(), imu_apogee_init(), and imu_apogee_periodic().