Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "std.h"
Go to the source code of this file.
Data Structures | |
struct | AirspeedMs45xx |
Functions | |
void | ms45xx_i2c_init (void) |
void | ms45xx_i2c_periodic (void) |
void | ms45xx_i2c_event (void) |
Variables | |
struct AirspeedMs45xx | ms45xx |
Airspeed driver for the MS45xx pressure sensor via I2C.
Definition in file airspeed_ms45xx_i2c.h.
struct AirspeedMs45xx |
Definition at line 31 of file airspeed_ms45xx_i2c.h.
Data Fields | ||
---|---|---|
float | airspeed | Airspeed in m/s estimated from (differential) pressure. |
float | airspeed_scale | Quadratic scale factor to convert (differential) pressure to airspeed. |
bool | autoset_offset | Set offset value from current filtered value. |
float | pressure | (differential) pressure in Pascal |
float | pressure_offset | Offset in Pascal. |
float | pressure_scale | Scaling factor from raw measurement to Pascal. |
bool | pressure_type | Pressure type Differential of Gauge. |
bool | sync_send | Flag to enable sending every new measurement via telemetry for debugging purpose. |
int16_t | temperature | Temperature in 0.1 deg Celcius. |
void ms45xx_i2c_event | ( | void | ) |
Definition at line 217 of file airspeed_ms45xx_i2c.c.
References AirspeedMs45xx::airspeed, AirspeedMs45xx::airspeed_scale, AUTOSET_NB_MAX, AirspeedMs45xx::autoset_offset, i2c_transaction::buf, DefaultChannel, DefaultDevice, I2CTransDone, I2CTransFailed, I2CTransSuccess, Max, ms45xx, ms45xx_downlink(), ms45xx_filter, MS45XX_SENDER_ID, ms45xx_trans, AirspeedMs45xx::pressure, AirspeedMs45xx::pressure_offset, AirspeedMs45xx::pressure_scale, stateSetAirspeed_f(), status, i2c_transaction::status, AirspeedMs45xx::sync_send, AirspeedMs45xx::temperature, update_butterworth_2_low_pass(), and USE_AIRSPEED_LOWPASS_FILTER.
void ms45xx_i2c_init | ( | void | ) |
Definition at line 184 of file airspeed_ms45xx_i2c.c.
References AirspeedMs45xx::airspeed, AirspeedMs45xx::airspeed_scale, DefaultPeriodic, I2CTransDone, init_butterworth_2_low_pass(), ms45xx, MS45XX_AIRSPEED_SCALE, ms45xx_downlink(), ms45xx_filter, MS45XX_LOWPASS_TAU, MS45XX_PRESSURE_OFFSET, MS45XX_PRESSURE_SCALE, MS45XX_PRESSURE_TYPE, MS45XX_SYNC_SEND, ms45xx_trans, AirspeedMs45xx::pressure, AirspeedMs45xx::pressure_offset, AirspeedMs45xx::pressure_scale, AirspeedMs45xx::pressure_type, register_periodic_telemetry(), i2c_transaction::status, AirspeedMs45xx::sync_send, and AirspeedMs45xx::temperature.
void ms45xx_i2c_periodic | ( | void | ) |
Definition at line 207 of file airspeed_ms45xx_i2c.c.
References i2c_receive(), I2CTransDone, MS45XX_I2C_ADDR, MS45XX_I2C_DEV, ms45xx_trans, and i2c_transaction::status.
struct AirspeedMs45xx ms45xx |
Definition at line 170 of file airspeed_ms45xx_i2c.c.
Referenced by ms45xx_downlink(), ms45xx_i2c_event(), and ms45xx_i2c_init().