43 #ifndef BARO_BOARD_APOGEE_FREQ
44 #define BARO_BOARD_APOGEE_FREQ 5
51 #ifdef BARO_PERIODIC_FREQUENCY
52 #define MPL_PRESCALER ((BARO_PERIODIC_FREQUENCY)/BARO_BOARD_APOGEE_FREQ)
54 #ifdef PERIODIC_FREQUENCY
55 #define MPL_PRESCALER ((PERIODIC_FREQUENCY)/BARO_BOARD_APOGEE_FREQ)
58 #define MPL_PRESCALER 12
63 #define BARO_STARTUP_COUNTER (200/(MPL_PRESCALER))
Driver for the IMU on the Apogee board.
Common barometric sensor implementation.
struct Mpl3115 apogee_baro
struct Mpu60x0Config config
void mpl3115_init(struct Mpl3115 *mpl, struct i2c_periph *i2c_p, uint8_t addr)
#define MPL_PRESCALER
Baro periodic prescaler.
Main include for ABI (AirBorneInterface).
void mpl3115_event(struct Mpl3115 *mpl)
#define BARO_STARTUP_COUNTER
Counter to init ads1114 at startup.
void mpl3115_periodic(struct Mpl3115 *mpl)
uint32_t pressure
pressure in 1/4 Pascal
bool_t initialized
config done flag
#define BARO_BOARD_SENDER_ID
default onboard baro
Driver for the baro MPL3115A2 from Freescale (i2c)
void apogee_baro_event(void)
int16_t temperature
temperature in 1/16 degrees Celcius
arch independent LED (Light Emitting Diodes) API
volatile bool_t data_available
data ready flag
struct ImuApogee imu_apogee