APM:Libraries
|
#include <AP_Airspeed_MS4525.h>
Public Member Functions | |
AP_Airspeed_MS4525 (AP_Airspeed &frontend, uint8_t _instance) | |
~AP_Airspeed_MS4525 (void) | |
bool | init () override |
bool | get_differential_pressure (float &pressure) override |
bool | get_temperature (float &temperature) override |
Public Member Functions inherited from AP_Airspeed_Backend | |
AP_Airspeed_Backend (AP_Airspeed &frontend, uint8_t instance) | |
virtual | ~AP_Airspeed_Backend () |
Private Member Functions | |
void | _measure () |
void | _collect () |
void | _timer () |
void | _voltage_correction (float &diff_press_pa, float &temperature) |
float | _get_pressure (int16_t dp_raw) const |
float | _get_temperature (int16_t dT_raw) const |
Private Attributes | |
float | _temp_sum |
float | _press_sum |
uint32_t | _temp_count |
uint32_t | _press_count |
float | _temperature |
float | _pressure |
uint32_t | _last_sample_time_ms |
uint32_t | _measurement_started_ms |
AP_HAL::OwnPtr< AP_HAL::I2CDevice > | _dev |
Additional Inherited Members | |
Protected Member Functions inherited from AP_Airspeed_Backend | |
int8_t | get_pin (void) const |
float | get_psi_range (void) const |
uint8_t | get_bus (void) const |
AP_Airspeed::pitot_tube_order | get_tube_order (void) const |
float | get_airspeed_ratio (void) const |
void | set_use_zero_offset (void) |
void | set_skip_cal (void) |
void | set_offset (float ofs) |
Protected Attributes inherited from AP_Airspeed_Backend | |
AP_HAL::Semaphore * | sem |
Definition at line 30 of file AP_Airspeed_MS4525.h.
AP_Airspeed_MS4525::AP_Airspeed_MS4525 | ( | AP_Airspeed & | frontend, |
uint8_t | _instance | ||
) |
Definition at line 32 of file AP_Airspeed_MS4525.cpp.
|
inline |
|
private |
Definition at line 125 of file AP_Airspeed_MS4525.cpp.
Referenced by _timer(), init(), and ~AP_Airspeed_MS4525().
|
private |
Definition at line 104 of file AP_Airspeed_MS4525.cpp.
Referenced by _collect(), and ~AP_Airspeed_MS4525().
|
private |
Definition at line 118 of file AP_Airspeed_MS4525.cpp.
Referenced by _collect(), and ~AP_Airspeed_MS4525().
|
private |
Definition at line 87 of file AP_Airspeed_MS4525.cpp.
Referenced by _timer(), init(), and ~AP_Airspeed_MS4525().
|
private |
Definition at line 214 of file AP_Airspeed_MS4525.cpp.
Referenced by init(), and ~AP_Airspeed_MS4525().
|
private |
correct for 5V rail voltage if the system_power ORB topic is available
See http://uav.tridgell.net/MS4525/MS4525-offset.png for a graph of offset versus voltage for 3 sensors
Definition at line 197 of file AP_Airspeed_MS4525.cpp.
Referenced by _collect(), and ~AP_Airspeed_MS4525().
|
overridevirtual |
Implements AP_Airspeed_Backend.
Definition at line 228 of file AP_Airspeed_MS4525.cpp.
Referenced by ~AP_Airspeed_MS4525().
|
overridevirtual |
Implements AP_Airspeed_Backend.
Definition at line 246 of file AP_Airspeed_MS4525.cpp.
Referenced by ~AP_Airspeed_MS4525().
|
overridevirtual |
Implements AP_Airspeed_Backend.
Definition at line 38 of file AP_Airspeed_MS4525.cpp.
Referenced by ~AP_Airspeed_MS4525().
|
private |
Definition at line 61 of file AP_Airspeed_MS4525.h.
Referenced by _collect(), _measure(), and init().
|
private |
Definition at line 59 of file AP_Airspeed_MS4525.h.
Referenced by _collect(), get_differential_pressure(), get_temperature(), and init().
|
private |
Definition at line 60 of file AP_Airspeed_MS4525.h.
Referenced by _collect(), _measure(), and _timer().
|
private |
Definition at line 56 of file AP_Airspeed_MS4525.h.
Referenced by _collect(), and get_differential_pressure().
|
private |
Definition at line 54 of file AP_Airspeed_MS4525.h.
Referenced by _collect(), and get_differential_pressure().
|
private |
Definition at line 58 of file AP_Airspeed_MS4525.h.
Referenced by get_differential_pressure().
|
private |
Definition at line 55 of file AP_Airspeed_MS4525.h.
Referenced by _collect(), and get_temperature().
|
private |
Definition at line 53 of file AP_Airspeed_MS4525.h.
Referenced by _collect(), and get_temperature().
|
private |
Definition at line 57 of file AP_Airspeed_MS4525.h.
Referenced by get_temperature().