Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Airspeed driver for the MS45xx via I2C. More...
#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 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 |
float | diff_pressure | differential pressure in Pascal |
float | pressure_offset | offset in Pascal |
float | pressure_scale | scaling factor from raw measurement to Pascal |
bool_t | sync_send | flag to enable sending every new measurement via telemetry |
int16_t | temperature | temperature in 0.1 deg Celcius |
void ms45xx_i2c_event | ( | void | ) |
Definition at line 175 of file airspeed_ms45xx_i2c.c.
References AirspeedMs45xx::airspeed, AirspeedMs45xx::airspeed_scale, i2c_transaction::buf, DefaultChannel, DefaultDevice, AirspeedMs45xx::diff_pressure, I2CTransDone, I2CTransFailed, I2CTransSuccess, Max, ms45xx, ms45xx_downlink(), MS45XX_SENDER_ID, ms45xx_trans, AirspeedMs45xx::pressure_offset, AirspeedMs45xx::pressure_scale, stateSetAirspeed_f(), i2c_transaction::status, AirspeedMs45xx::sync_send, AirspeedMs45xx::temperature, and update_butterworth_2_low_pass().
void ms45xx_i2c_init | ( | void | ) |
Definition at line 147 of file airspeed_ms45xx_i2c.c.
References AirspeedMs45xx::airspeed, AirspeedMs45xx::airspeed_scale, DefaultPeriodic, AirspeedMs45xx::diff_pressure, I2CTransDone, init_butterworth_2_low_pass(), ms45xx, MS45XX_AIRSPEED_SCALE, ms45xx_downlink(), MS45XX_LOWPASS_TAU, MS45XX_PRESSURE_OFFSET, MS45XX_PRESSURE_SCALE, MS45XX_SYNC_SEND, ms45xx_trans, AirspeedMs45xx::pressure_offset, AirspeedMs45xx::pressure_scale, register_periodic_telemetry(), i2c_transaction::status, AirspeedMs45xx::sync_send, and AirspeedMs45xx::temperature.
void ms45xx_i2c_periodic | ( | void | ) |
Definition at line 167 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 135 of file airspeed_ms45xx_i2c.c.
Referenced by ms45xx_downlink(), ms45xx_i2c_event(), and ms45xx_i2c_init().