Paparazzi UAS
v5.8.2_stable-0-g6260b7c
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 "subsystems/abi.h"
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/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 |
#define | APOGEE_GYRO_RANGE MPU60X0_GYRO_RANGE_1000 |
#define | APOGEE_ACCEL_RANGE MPU60X0_ACCEL_RANGE_8G |
Functions | |
bool_t | configure_baro_slave (Mpu60x0ConfigSet mpu_set, void *mpu) |
void | imu_impl_init (void) |
must be defined by underlying hardware More... | |
void | imu_periodic (void) |
optional. More... | |
void | imu_apogee_downlink_raw (void) |
void | imu_apogee_event (void) |
Variables | |
struct ImuApogee | imu_apogee |
#define APOGEE_ACCEL_RANGE MPU60X0_ACCEL_RANGE_8G |
Definition at line 65 of file imu_apogee.c.
Referenced by imu_impl_init().
#define APOGEE_GYRO_RANGE MPU60X0_GYRO_RANGE_1000 |
Definition at line 60 of file imu_apogee.c.
Referenced by imu_impl_init().
#define APOGEE_LOWPASS_FILTER MPU60X0_DLPF_42HZ |
Definition at line 52 of file imu_apogee.c.
Referenced by imu_impl_init().
#define APOGEE_SMPLRT_DIV 9 |
Definition at line 53 of file imu_apogee.c.
Referenced by imu_impl_init().
#define IMU_APOGEE_CHAN_X 0 |
Definition at line 42 of file imu_apogee.c.
Referenced by imu_apogee_event().
#define IMU_APOGEE_CHAN_Y 1 |
Definition at line 45 of file imu_apogee.c.
Referenced by imu_apogee_event().
#define IMU_APOGEE_CHAN_Z 2 |
Definition at line 48 of file imu_apogee.c.
Referenced by imu_apogee_event().
bool_t configure_baro_slave | ( | Mpu60x0ConfigSet | mpu_set, |
void * | mpu | ||
) |
Definition at line 74 of file imu_apogee.c.
References TRUE.
Referenced by imu_impl_init().
void imu_apogee_downlink_raw | ( | void | ) |
Definition at line 103 of file imu_apogee.c.
References Imu::accel_unscaled, DefaultChannel, DefaultDevice, Imu::gyro_unscaled, imu, Int32Rates::p, Int32Rates::q, Int32Rates::r, Int32Vect3::x, Int32Vect3::y, and Int32Vect3::z.
void imu_apogee_event | ( | void | ) |
Definition at line 112 of file imu_apogee.c.
References Imu::accel, Imu::accel_unscaled, Mpu60x0_I2c::data_accel, Mpu60x0_I2c::data_available, Mpu60x0_I2c::data_rates, FALSE, get_sys_time_usec(), Imu::gyro, Imu::gyro_unscaled, imu, imu_apogee, IMU_APOGEE_CHAN_X, IMU_APOGEE_CHAN_Y, IMU_APOGEE_CHAN_Z, IMU_BOARD_ID, imu_scale_accel(), imu_scale_gyro(), ImuApogee::mpu, mpu60x0_i2c_event(), RATES_COPY, and VECT3_COPY.
void imu_impl_init | ( | void | ) |
must be defined by underlying hardware
Definition at line 79 of file imu_apogee.c.
Referenced by imu_init().
void imu_periodic | ( | void | ) |
optional.
If not provided by implementation, empty function is used
Definition at line 95 of file imu_apogee.c.
Referenced by main_periodic(), main_periodic_task(), and sensors_task().
struct ImuApogee imu_apogee |
Definition at line 69 of file imu_apogee.c.
Referenced by baro_periodic(), imu_apogee_event(), imu_impl_init(), and imu_periodic().