42bool log_apogee_baro_started;
46#define BARO_STARTUP_COUNTER (4 * BARO_APOGEE_FREQ)
57 log_apogee_baro_started =
false;
88 if (!log_apogee_baro_started) {
89 sdLogWriteLog(
pprzLogFile,
"APOGEE_BARO: Pres(Pa) Temp(degC) GPS_fix TOW(ms) Week Lat(1e7deg) Lon(1e7deg) HMSL(mm) gpseed(cm/s) course(1e7deg) climb(cm/s)\n");
90 log_apogee_baro_started =
true;
95 gps.lla_pos.lat,
gps.lla_pos.lon,
gps.hmsl,
Main include for ABI (AirBorneInterface).
#define TEMPERATURE_TYPE_BARO
barometer die
#define BARO_MPL3115_SENDER_ID
void baro_apogee_event(void)
void baro_apogee_periodic(void)
struct Mpl3115 apogee_baro
#define BARO_STARTUP_COUNTER
Number of readings skipped at startup, about 4 s.
void baro_apogee_init(void)
integrated barometer for Apogee boards (mpl3115)
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
struct GpsState gps
global GPS state
Device independent GPS code (interface).
struct ImuApogee imu_apogee
Driver for the IMU on the Apogee board.
static FILE * pprzLogFile
void mpl3115_periodic(struct Mpl3115 *mpl)
void mpl3115_init(struct Mpl3115 *mpl, struct i2c_periph *i2c_p, uint8_t addr)
void mpl3115_event(struct Mpl3115 *mpl)
Driver for the baro MPL3115A2 from Freescale (i2c).
uint32_t pressure
pressure in 1/4 Pascal
SdioError sdLogWriteLog(const FileDes fd, const char *fmt,...)
Architecture independent timing functions.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.