![]() |
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "sensors/airspeed_amsys.h"
#include "state.h"
#include "mcu_periph/i2c.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "modules/datalink/downlink.h"
#include <math.h>
Go to the source code of this file.
Functions | |
void | airspeed_amsys_downlink (void) |
void | airspeed_amsys_init (void) |
void | airspeed_amsys_read_periodic (void) |
void | airspeed_amsys_read_event (void) |
#define AIRSPEED_AMSYS_ADDR 0xE8 |
Definition at line 36 of file airspeed_amsys.c.
#define AIRSPEED_AMSYS_FILTER 0 |
Definition at line 49 of file airspeed_amsys.c.
Definition at line 52 of file airspeed_amsys.c.
#define AIRSPEED_AMSYS_MAXPRESURE 2068 |
Definition at line 46 of file airspeed_amsys.c.
#define AIRSPEED_AMSYS_NBSAMPLES_AVRG 10 |
Definition at line 44 of file airspeed_amsys.c.
#define AIRSPEED_AMSYS_OFFSET_MAX 29491 |
Definition at line 40 of file airspeed_amsys.c.
#define AIRSPEED_AMSYS_OFFSET_MIN 3277 |
Definition at line 41 of file airspeed_amsys.c.
#define AIRSPEED_AMSYS_OFFSET_NBSAMPLES_AVRG 60 |
Definition at line 43 of file airspeed_amsys.c.
#define AIRSPEED_AMSYS_OFFSET_NBSAMPLES_INIT 40 |
Definition at line 42 of file airspeed_amsys.c.
#define AIRSPEED_AMSYS_SCALE 1 |
Definition at line 38 of file airspeed_amsys.c.
Definition at line 135 of file airspeed_amsys.c.
References airspeed_amsys, airspeed_amsys_p, airspeed_amsys_raw, airspeed_amsys_tmp, airspeed_temperature, DefaultChannel, DefaultDevice, and foo.
Referenced by airspeed_amsys_read_event(), and airspeed_amsys_read_periodic().
Definition at line 92 of file airspeed_amsys.c.
References airspeed_amsys, airspeed_amsys_cnt, AIRSPEED_AMSYS_FILTER, airspeed_amsys_i2c_done, airspeed_amsys_i2c_trans, airspeed_amsys_offset, airspeed_amsys_offset_init, AIRSPEED_AMSYS_OFFSET_NBSAMPLES_AVRG, AIRSPEED_AMSYS_OFFSET_NBSAMPLES_INIT, airspeed_amsys_offset_tmp, airspeed_amsys_p, airspeed_amsys_raw, AIRSPEED_AMSYS_SCALE, airspeed_amsys_valid, airspeed_filter, airspeed_scale, I2CTransDone, and i2c_transaction::status.
Definition at line 143 of file airspeed_amsys.c.
References airspeed_amsys, airspeed_amsys_cnt, airspeed_amsys_downlink(), airspeed_amsys_i2c_trans, AIRSPEED_AMSYS_MAXPRESURE, airspeed_amsys_offset, airspeed_amsys_offset_init, AIRSPEED_AMSYS_OFFSET_MAX, AIRSPEED_AMSYS_OFFSET_MIN, AIRSPEED_AMSYS_OFFSET_NBSAMPLES_AVRG, airspeed_amsys_offset_tmp, airspeed_amsys_p, airspeed_amsys_raw, airspeed_amsys_tmp, airspeed_amsys_valid, airspeed_filter, airspeed_old, airspeed_scale, airspeed_temperature, i2c_transaction::buf, foo, I2CTransDone, stateSetAirspeed_f(), i2c_transaction::status, and tempAS_amsys_raw.
Definition at line 109 of file airspeed_amsys.c.
References airspeed_amsys, AIRSPEED_AMSYS_ADDR, airspeed_amsys_downlink(), AIRSPEED_AMSYS_I2C_DEV, airspeed_amsys_i2c_trans, foo, i2c_receive(), I2CTransDone, stateSetAirspeed_f(), and i2c_transaction::status.
float airspeed_amsys |
Definition at line 77 of file airspeed_amsys.c.
Referenced by airspeed_amsys_downlink(), airspeed_amsys_init(), airspeed_amsys_read_event(), and airspeed_amsys_read_periodic().
uint16_t airspeed_amsys_cnt |
Definition at line 88 of file airspeed_amsys.c.
Referenced by airspeed_amsys_init(), and airspeed_amsys_read_event().
Definition at line 83 of file airspeed_amsys.c.
Referenced by airspeed_amsys_init().
struct i2c_transaction airspeed_amsys_i2c_trans |
Definition at line 80 of file airspeed_amsys.c.
Referenced by airspeed_amsys_init(), airspeed_amsys_read_event(), and airspeed_amsys_read_periodic().
float airspeed_amsys_offset |
Definition at line 74 of file airspeed_amsys.c.
Referenced by airspeed_amsys_init(), and airspeed_amsys_read_event().
bool airspeed_amsys_offset_init |
Definition at line 86 of file airspeed_amsys.c.
Referenced by airspeed_amsys_init(), and airspeed_amsys_read_event().
double airspeed_amsys_offset_tmp |
Definition at line 87 of file airspeed_amsys.c.
Referenced by airspeed_amsys_init(), and airspeed_amsys_read_event().
float airspeed_amsys_p |
Definition at line 76 of file airspeed_amsys.c.
Referenced by airspeed_amsys_downlink(), airspeed_amsys_init(), and airspeed_amsys_read_event().
uint16_t airspeed_amsys_raw |
Definition at line 71 of file airspeed_amsys.c.
Referenced by airspeed_amsys_downlink(), airspeed_amsys_init(), and airspeed_amsys_read_event().
float airspeed_amsys_tmp |
Definition at line 75 of file airspeed_amsys.c.
Referenced by airspeed_amsys_downlink(), and airspeed_amsys_read_event().
bool airspeed_amsys_valid |
Definition at line 73 of file airspeed_amsys.c.
Referenced by airspeed_amsys_init(), and airspeed_amsys_read_event().
float airspeed_filter |
Definition at line 79 of file airspeed_amsys.c.
Referenced by airspeed_amsys_init(), airspeed_amsys_read_event(), airspeed_uavcan_cb(), and airspeed_uavcan_init().
float airspeed_old = 0.0 |
Definition at line 85 of file airspeed_amsys.c.
Referenced by airspeed_amsys_read_event().
float airspeed_scale |
Definition at line 78 of file airspeed_amsys.c.
Referenced by airspeed_amsys_init(), and airspeed_amsys_read_event().
float airspeed_temperature = 0.0 |
Definition at line 84 of file airspeed_amsys.c.
Referenced by airspeed_amsys_downlink(), and airspeed_amsys_read_event().
uint16_t tempAS_amsys_raw |
Definition at line 72 of file airspeed_amsys.c.
Referenced by airspeed_amsys_read_event().