Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Common barometric sensor implementation. More...
#include <BOARD_CONFIG>
Go to the source code of this file.
Functions | |
void | baro_init (void) |
void | baro_periodic (void) |
Common barometric sensor implementation.
Used with baro integrated to the autopilot board. Implementation is in boards/<board_name>/baro_board.[ch]
Definition in file baro.h.
void baro_init | ( | void | ) |
Definition at line 76 of file baro_board.c.
References apogee_baro, baro_bmp085, baro_board, baro_eoc(), BARO_STARTUP_COUNTER, bb_ms5611, BB_MS5611_SLAVE_ADDR, BB_MS5611_TYPE_MS5607, bmp085_init(), BMP085_SLAVE_ADDR, Bmp085::eoc, GPIO0, gpio_clear(), gpio_setup_input_pulldown(), GPIOB, init_median_filter_i(), LBS_UNINITIALIZED, LED_OFF, MEDIAN_DEFAULT_SIZE, MPL3115_I2C_ADDR, mpl3115_init(), ms5611_i2c_init(), ms5611_spi_init(), BaroBoard::running, startup_cnt, and BaroBoard::status.
Referenced by baro_board_init().
void baro_periodic | ( | void | ) |
Definition at line 90 of file baro_board.c.
References apogee_baro, BARO_ABS_ADDR, baro_bmp085, baro_board, baro_board_read_from_current_register(), baro_board_send_config_abs(), baro_board_send_config_diff(), baro_board_send_reset(), baro_board_set_current_register(), BARO_DIFF_ADDR, bb_ms5611, bmp085_periodic(), bmp085_read_eeprom_calib(), Ms5611Data::c, Mpu60x0_I2c::config, Ms5611_I2c::data, Ms5611_Spi::data, Mpl3115::data_available, DefaultChannel, DefaultDevice, i2c_idle(), imu_apogee, Bmp085::initialized, Mpu60x0Config::initialized, Ms5611_I2c::initialized, Ms5611_Spi::initialized, LBS_INITIALIZING_ABS, LBS_INITIALIZING_ABS_1, LBS_INITIALIZING_DIFF, LBS_INITIALIZING_DIFF_1, LBS_READ_ABS, LBS_READ_DIFF, LBS_READING_ABS, LBS_READING_DIFF, LBS_RESETED, LBS_UNINITIALIZED, LED_ON, LED_TOGGLE, mpl3115_periodic(), MPL_PRESCALER, ImuApogee::mpu, ms5611_i2c_periodic(), ms5611_spi_periodic(), sys_time::nb_sec, BaroBoard::running, startup_cnt, BaroBoard::status, and TRUE.
Referenced by baro_board_periodic().