Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the source code of this file.
Functions | |
void | airspeed_ets_init (void) |
void | airspeed_ets_read_periodic (void) |
void | airspeed_ets_read_event (void) |
static void | AirspeedEtsEvent (void) |
Variables | |
uint16_t | airspeed_ets_raw |
uint16_t | airspeed_ets_offset |
bool | airspeed_ets_valid |
float | airspeed_ets |
struct i2c_transaction | airspeed_ets_i2c_trans |
Driver for the EagleTree Systems Airspeed Sensor. Has only been tested with V3 of the sensor hardware.
Notes: Connect directly to TWOG/Tiny I2C port. Multiple sensors can be chained together. Sensor should be in the proprietary mode (default) and not in 3rd party mode.
Sensor module wire assignments: Red wire: 5V White wire: Ground Yellow wire: SDA Brown wire: SCL
Definition in file airspeed_ets.h.
void airspeed_ets_init | ( | void | ) |
Definition at line 113 of file airspeed_ets.c.
References airspeed_ets, airspeed_ets_buffer, airspeed_ets_buffer_idx, airspeed_ets_cnt, airspeed_ets_delay_done, airspeed_ets_delay_time, airspeed_ets_i2c_done, airspeed_ets_i2c_trans, AIRSPEED_ETS_NBSAMPLES_AVRG, airspeed_ets_offset, airspeed_ets_offset_init, AIRSPEED_ETS_OFFSET_NBSAMPLES_AVRG, AIRSPEED_ETS_OFFSET_NBSAMPLES_INIT, airspeed_ets_offset_tmp, airspeed_ets_raw, airspeed_ets_valid, I2CTransDone, i2c_transaction::status, and SysTimeTimerStart.
void airspeed_ets_read_event | ( | void | ) |
Definition at line 158 of file airspeed_ets.c.
References airspeed_ets, airspeed_ets_buffer, airspeed_ets_buffer_idx, airspeed_ets_cnt, airspeed_ets_i2c_trans, AIRSPEED_ETS_NBSAMPLES_AVRG, AIRSPEED_ETS_OFFSET, airspeed_ets_offset, airspeed_ets_offset_init, AIRSPEED_ETS_OFFSET_MAX, AIRSPEED_ETS_OFFSET_MIN, AIRSPEED_ETS_OFFSET_NBSAMPLES_AVRG, airspeed_ets_offset_tmp, airspeed_ets_raw, AIRSPEED_ETS_SCALE, airspeed_ets_valid, i2c_transaction::buf, GpsState::course, DefaultChannel, DefaultDevice, GpsState::fix, gps, GpsState::gspeed, GpsState::hmsl, I2CTransDone, LlaCoor_i::lat, GpsState::lla_pos, LlaCoor_i::lon, GpsState::ned_vel, pprzLogFile, stateSetAirspeed_f(), i2c_transaction::status, GpsState::tow, GpsState::week, and NedCoor_i::z.
Referenced by AirspeedEtsEvent().
void airspeed_ets_read_periodic | ( | void | ) |
Definition at line 142 of file airspeed_ets.c.
References AIRSPEED_ETS_ADDR, airspeed_ets_delay_done, airspeed_ets_delay_time, AIRSPEED_ETS_I2C_DEV, airspeed_ets_i2c_trans, AIRSPEED_ETS_START_DELAY, i2c_receive(), I2CTransDone, sim_air_speed, stateSetAirspeed_f(), i2c_transaction::status, SysTimeTimer, and USEC_OF_SEC.
|
inlinestatic |
Definition at line 58 of file airspeed_ets.h.
References airspeed_ets_i2c_trans, airspeed_ets_read_event(), I2CTransDone, I2CTransFailed, I2CTransSuccess, and i2c_transaction::status.
float airspeed_ets |
Definition at line 99 of file airspeed_ets.c.
Referenced by airspeed_ets_init(), and airspeed_ets_read_event().
struct i2c_transaction airspeed_ets_i2c_trans |
Definition at line 103 of file airspeed_ets.c.
Referenced by airspeed_ets_init(), airspeed_ets_read_event(), airspeed_ets_read_periodic(), and AirspeedEtsEvent().
uint16_t airspeed_ets_offset |
Definition at line 97 of file airspeed_ets.c.
Referenced by airspeed_ets_init(), and airspeed_ets_read_event().
uint16_t airspeed_ets_raw |
Definition at line 96 of file airspeed_ets.c.
Referenced by airspeed_ets_init(), and airspeed_ets_read_event().
bool airspeed_ets_valid |
Definition at line 98 of file airspeed_ets.c.
Referenced by airspeed_ets_init(), and airspeed_ets_read_event().