Paparazzi UAS
v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
|
integrated barometer for Apogee boards (mpl3115) More...
#include "std.h"
#include "subsystems/sensors/baro.h"
#include "peripherals/mpl3115.h"
#include "boards/apogee/imu_apogee.h"
#include "subsystems/abi.h"
#include "led.h"
Go to the source code of this file.
Macros | |
#define | BARO_BOARD_APOGEE_FREQ 5 |
Normal frequency with the default settings. More... | |
#define | MPL_PRESCALER 12 |
Baro periodic prescaler. More... | |
#define | BARO_STARTUP_COUNTER (200/(MPL_PRESCALER)) |
Counter to init ads1114 at startup. More... | |
Functions | |
void | baro_init (void) |
void | baro_periodic (void) |
void | apogee_baro_event (void) |
Variables | |
uint16_t | startup_cnt |
struct Mpl3115 | apogee_baro |
integrated barometer for Apogee boards (mpl3115)
Definition in file baro_board.c.
#define BARO_BOARD_APOGEE_FREQ 5 |
Normal frequency with the default settings.
the baro read function should be called at 5 Hz
Definition at line 52 of file baro_board.c.
#define BARO_STARTUP_COUNTER (200/(MPL_PRESCALER)) |
Counter to init ads1114 at startup.
Definition at line 71 of file baro_board.c.
Referenced by baro_init().
#define MPL_PRESCALER 12 |
Baro periodic prescaler.
different for fixedwing and rotorcraft...
Definition at line 66 of file baro_board.c.
Referenced by baro_periodic().
void apogee_baro_event | ( | void | ) |
Definition at line 112 of file baro_board.c.
References apogee_baro, BARO_BOARD_SENDER_ID, GpsState::course, Mpl3115::data_available, GpsState::fix, get_sys_time_usec(), gps, GpsState::gspeed, GpsState::hmsl, LlaCoor_i::lat, GpsState::lla_pos, LlaCoor_i::lon, mpl3115_event(), GpsState::ned_vel, pprzLogFile, Mpl3115::pressure, startup_cnt, Mpl3115::temperature, GpsState::tow, GpsState::week, and NedCoor_i::z.
void baro_init | ( | void | ) |
Definition at line 76 of file baro_board.c.
Referenced by init_ap(), and main_init().
void baro_periodic | ( | void | ) |
Definition at line 90 of file baro_board.c.
Referenced by handle_periodic_tasks(), and handle_periodic_tasks_ap().
struct Mpl3115 apogee_baro |
Definition at line 74 of file baro_board.c.
Referenced by apogee_baro_event(), baro_init(), and baro_periodic().
uint16_t startup_cnt |
Definition at line 72 of file baro_board.c.
Referenced by apogee_baro_event(), baro_init(), baro_periodic(), navgo_baro_event(), and umarim_baro_event().