41 #include "pprzlink/messages.h"
45 #ifndef NAVGO_ACCEL_RATE
46 #define NAVGO_ACCEL_RATE ADXL345_RATE_25HZ
51 #if !defined NAVGO_GYRO_LOWPASS && !defined NAVGO_GYRO_SMPLRT_DIV
52 #define NAVGO_GYRO_LOWPASS ITG3200_DLPF_10HZ
53 #define NAVGO_GYRO_SMPLRT_DIV 1
59 #if NAVGO_USE_MEDIAN_FILTER
85 #if NAVGO_USE_MEDIAN_FILTER
128 #if NAVGO_USE_MEDIAN_FILTER
140 #if NAVGO_USE_MEDIAN_FILTER
152 #if NAVGO_USE_MEDIAN_FILTER
void imu_navgo_event(void)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
volatile bool data_available
data ready flag
uint8_t smplrt_div
Sample rate divider.
void itg3200_init(struct Itg3200 *itg, struct i2c_periph *i2c_p, uint8_t addr)
Initialize Itg3200 struct and set default config options.
#define NAVGO_GYRO_SMPLRT_DIV
enum Adxl345Rates rate
Data Output Rate.
#define VECT3_COPY(_a, _b)
#define VECT3_ASSIGN(_a, _x, _y, _z)
#define RATES_ASSIGN(_ra, _p, _q, _r)
Main include for ABI (AirBorneInterface).
void imu_navgo_downlink_raw(void)
struct Imu imu
global IMU state
void imu_navgo_init(void)
struct Int32Vect3 mag_unscaled
unscaled magnetometer measurements
int32_t r
in rad/s with INT32_RATE_FRAC
struct Int32Rates gyro_unscaled
unscaled gyroscope measurements
struct Int32Vect3 accel
accelerometer measurements in m/s^2 in BFP with INT32_ACCEL_FRAC
void imu_navgo_periodic(void)
struct Adxl345Config config
Interface for the IMU on the NavGo board.
static void adxl345_i2c_periodic(struct Adxl345_I2c *adxl)
convenience function: read or start configuration if not already initialized
void adxl345_i2c_event(struct Adxl345_I2c *adxl)
PRINT_CONFIG_MSG("USE_INS_NAV_INIT defaulting to TRUE")
struct Int32Vect3 mag
magnetometer measurements scaled to 1 in BFP with INT32_MAG_FRAC
void imu_scale_gyro(struct Imu *_imu)
void adxl345_i2c_init(struct Adxl345_I2c *adxl, struct i2c_periph *i2c_p, uint8_t addr)
union Adxl345_I2c::@293 data
enum Itg3200DLPF dlpf_cfg
Digital Low Pass Filter.
struct MedianFilter3Int median_mag
void imu_scale_mag(struct Imu *_imu)
struct ImuNavgo imu_navgo
static void hmc58xx_periodic(struct Hmc58xx *hmc)
convenience function: read or start configuration if not already initialized
#define NAVGO_GYRO_LOWPASS
Common code for AP and FBW telemetry.
void itg3200_event(struct Itg3200 *itg)
static void itg3200_periodic(struct Itg3200 *itg)
convenience function: read or start configuration if not already initialized
int32_t p
in rad/s with INT32_RATE_FRAC
arch independent LED (Light Emitting Diodes) API
void hmc58xx_init(struct Hmc58xx *hmc, struct i2c_periph *i2c_p, uint8_t addr)
Initialize Hmc58xx struct and set default config options.
struct Int32Vect3 accel_unscaled
unscaled accelerometer measurements
void imu_scale_accel(struct Imu *_imu)
volatile bool data_available
data ready flag
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
struct Itg3200Config config
void hmc58xx_event(struct Hmc58xx *hmc)
int32_t q
in rad/s with INT32_RATE_FRAC
volatile bool data_available
data ready flag
struct Int32Rates gyro
gyroscope measurements in rad/s in BFP with INT32_RATE_FRAC
Architecture independent I2C (Inter-Integrated Circuit Bus) API.