APM:Libraries
|
#include <AP_Baro_MS5611.h>
Public Types | |
enum | MS56XX_TYPE { BARO_MS5611 = 0, BARO_MS5607 = 1, BARO_MS5637 = 2, BARO_MS5837 = 3 } |
Public Member Functions | |
void | update () |
![]() | |
AP_Baro_Backend (AP_Baro &baro) | |
virtual | ~AP_Baro_Backend (void) |
virtual void | accumulate (void) |
virtual void | handle_baro_msg (float pressure, float temperature) |
void | backend_update (uint8_t instance) |
bool | pressure_ok (float press) |
uint32_t | get_error_count () const |
Static Public Member Functions | |
static AP_Baro_Backend * | probe (AP_Baro &baro, AP_HAL::OwnPtr< AP_HAL::Device > dev, enum MS56XX_TYPE ms56xx_type=BARO_MS5611) |
Private Member Functions | |
AP_Baro_MS56XX (AP_Baro &baro, AP_HAL::OwnPtr< AP_HAL::Device > dev, enum MS56XX_TYPE ms56xx_type) | |
bool | _init () |
void | _calculate_5611 () |
void | _calculate_5607 () |
void | _calculate_5637 () |
void | _calculate_5837 () |
bool | _read_prom_5611 (uint16_t prom[8]) |
bool | _read_prom_5637 (uint16_t prom[8]) |
uint16_t | _read_prom_word (uint8_t word) |
uint32_t | _read_adc () |
void | _timer () |
Static Private Member Functions | |
static void | _update_and_wrap_accumulator (uint32_t *accum, uint32_t val, uint8_t *count, uint8_t max_count) |
Private Attributes | |
AP_HAL::OwnPtr< AP_HAL::Device > | _dev |
struct { | |
uint32_t s_D1 | |
uint32_t s_D2 | |
uint8_t d1_count | |
uint8_t d2_count | |
} | _accum |
uint8_t | _state |
uint8_t | _instance |
float | _D1 |
float | _D2 |
struct { | |
uint16_t c1 | |
uint16_t c2 | |
uint16_t c3 | |
uint16_t c4 | |
uint16_t c5 | |
uint16_t c6 | |
} | _cal_reg |
bool | _discard_next |
enum MS56XX_TYPE | _ms56xx_type |
Additional Inherited Members | |
![]() | |
void | _copy_to_frontend (uint8_t instance, float pressure, float temperature) |
virtual void | update_healthy_flag (uint8_t instance) |
![]() | |
AP_Baro & | _frontend |
AP_HAL::Semaphore * | _sem |
float | _mean_pressure |
uint32_t | _error_count |
Definition at line 17 of file AP_Baro_MS5611.h.
Enumerator | |
---|---|
BARO_MS5611 | |
BARO_MS5607 | |
BARO_MS5637 | |
BARO_MS5837 |
Definition at line 22 of file AP_Baro_MS5611.h.
|
private |
Definition at line 56 of file AP_Baro_MS5611.cpp.
Referenced by probe().
|
private |
Definition at line 413 of file AP_Baro_MS5611.cpp.
Referenced by update().
|
private |
Definition at line 378 of file AP_Baro_MS5611.cpp.
Referenced by update().
|
private |
Definition at line 448 of file AP_Baro_MS5611.cpp.
Referenced by update().
|
private |
Definition at line 481 of file AP_Baro_MS5611.cpp.
Referenced by update().
|
private |
Definition at line 78 of file AP_Baro_MS5611.cpp.
Referenced by probe().
|
private |
Definition at line 191 of file AP_Baro_MS5611.cpp.
Referenced by _timer().
|
private |
Definition at line 200 of file AP_Baro_MS5611.cpp.
Referenced by _init().
|
private |
Definition at line 230 of file AP_Baro_MS5611.cpp.
Referenced by _init().
|
private |
Definition at line 181 of file AP_Baro_MS5611.cpp.
Referenced by _read_prom_5611(), and _read_prom_5637().
|
private |
Definition at line 271 of file AP_Baro_MS5611.cpp.
Referenced by _init().
|
staticprivate |
Definition at line 322 of file AP_Baro_MS5611.cpp.
Referenced by _timer().
|
static |
Definition at line 63 of file AP_Baro_MS5611.cpp.
Referenced by AP_Baro::init().
|
virtual |
Implements AP_Baro_Backend.
Definition at line 333 of file AP_Baro_MS5611.cpp.
struct { ... } AP_Baro_MS56XX::_cal_reg |
Referenced by _calculate_5607(), _calculate_5611(), _calculate_5637(), _calculate_5837(), and _init().
|
private |
Definition at line 70 of file AP_Baro_MS5611.h.
Referenced by _calculate_5607(), _calculate_5611(), _calculate_5637(), _calculate_5837(), and update().
|
private |
Definition at line 70 of file AP_Baro_MS5611.h.
Referenced by _calculate_5607(), _calculate_5611(), _calculate_5637(), _calculate_5837(), and update().
|
private |
Definition at line 56 of file AP_Baro_MS5611.h.
Referenced by _init(), _read_adc(), _read_prom_word(), and _timer().
|
private |
Definition at line 77 of file AP_Baro_MS5611.h.
Referenced by _timer().
|
private |
Definition at line 67 of file AP_Baro_MS5611.h.
Referenced by _calculate_5607(), _calculate_5611(), _calculate_5637(), _calculate_5837(), and _init().
|
private |
Definition at line 79 of file AP_Baro_MS5611.h.
|
private |
Definition at line 66 of file AP_Baro_MS5611.h.
uint16_t AP_Baro_MS56XX::c1 |
Definition at line 74 of file AP_Baro_MS5611.h.
uint16_t AP_Baro_MS56XX::c2 |
Definition at line 74 of file AP_Baro_MS5611.h.
uint16_t AP_Baro_MS56XX::c3 |
Definition at line 74 of file AP_Baro_MS5611.h.
uint16_t AP_Baro_MS56XX::c4 |
Definition at line 74 of file AP_Baro_MS5611.h.
uint16_t AP_Baro_MS56XX::c5 |
Definition at line 74 of file AP_Baro_MS5611.h.
uint16_t AP_Baro_MS56XX::c6 |
Definition at line 74 of file AP_Baro_MS5611.h.
uint8_t AP_Baro_MS56XX::d1_count |
Definition at line 62 of file AP_Baro_MS5611.h.
uint8_t AP_Baro_MS56XX::d2_count |
Definition at line 63 of file AP_Baro_MS5611.h.
uint32_t AP_Baro_MS56XX::s_D1 |
Definition at line 60 of file AP_Baro_MS5611.h.
uint32_t AP_Baro_MS56XX::s_D2 |
Definition at line 61 of file AP_Baro_MS5611.h.