Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
Data acquisition module for ENAC PTU board. More...
Go to the source code of this file.
Data Structures | |
struct | MeteoStick |
Raw sensors structure. More... | |
Macros | |
#define | USE_MS_EEPROM TRUE |
Functions | |
void | meteo_stick_init (void) |
Functions. More... | |
void | meteo_stick_periodic (void) |
Periodic function. More... | |
void | meteo_stick_event (void) |
Event function. More... | |
Variables | |
struct MeteoStick | meteo_stick |
General structure. More... | |
Data acquisition module for ENAC PTU board.
provides meteo data:
based on the ADS1220 spi ADC for pressures and temperature, and PWM input for humidity
data can be send other telemetry and/or logged on SD card (on capable autopilots)
designed and debugged by Michel Gorraz and Alexandre Bustico @ Enac (2014)
Definition in file meteo_stick.h.
struct MeteoStick |
Raw sensors structure.
Definition at line 59 of file meteo_stick.h.
Data Fields | ||
---|---|---|
float | current_airspeed | calibrated airspeed |
float | current_humidity | calibrated humidity |
float | current_pressure | calibrated pressure |
float | current_temperature | calibrated temperature |
struct Ads1220 | diff_pressure | differential pressure |
uint32_t | humidity_period | humidity (in ticks) |
struct Ads1220 | pressure | absolute pressure |
bool | reset_dp_offset | reset differential pressure offset |
struct Ads1220 | temperature | temperature |
#define USE_MS_EEPROM TRUE |
Definition at line 50 of file meteo_stick.h.
void meteo_stick_event | ( | void | ) |
Event function.
Definition at line 384 of file meteo_stick.c.
References ads1220_event(), MeteoStick::current_airspeed, MeteoStick::current_pressure, MeteoStick::current_temperature, Ads1220::data, Ads1220::data_available, MeteoStick::diff_pressure, eeprom25AA256_event(), get_diff(), get_pitot(), get_pressure(), get_temp(), meteo_stick, METEO_STICK_SENDER_ID, MS_PITOT_COUNTER, MS_PITOT_FILTER, pitot_counter, pitot_offset, MeteoStick::pressure, and MeteoStick::temperature.
void meteo_stick_init | ( | void | ) |
Functions.
Functions.
Definition at line 212 of file meteo_stick.c.
References ADS1220_CONTINIOUS_CONVERSION, ADS1220_GAIN_1, ADS1220_GAIN_2, ADS1220_GAIN_4, ADS1220_IDAC_250_uA, ADS1220_IDAC_OFF, ADS1220_IMUX_A0_RP1, ADS1220_IMUX_OFF, ads1220_init(), ADS1220_MUX_AIN0_AIN1, ADS1220_MUX_AIN0_AVSS, ADS1220_RATE_45_HZ, ADS1220_VREF_EXTERNAL_REF, ADS1220_VREF_VDD, Ads1220::config, Ads1220Config::conv, MeteoStick::current_airspeed, MeteoStick::current_humidity, MeteoStick::current_pressure, MeteoStick::current_temperature, MeteoStick::diff_pressure, eeprom25AA256_init(), Ads1220Config::gain, MeteoStick::humidity_period, Ads1220Config::i1mux, Ads1220Config::i2mux, Ads1220Config::idac, meteo_stick, MS_PITOT_COUNTER, MTOSTK_NUM_SENSORS, Ads1220Config::mux, Ads1220Config::pga_bypass, pitot_counter, MeteoStick::pressure, Ads1220Config::rate, MeteoStick::reset_dp_offset, MeteoStick::temperature, and Ads1220Config::vref.
void meteo_stick_periodic | ( | void | ) |
Periodic function.
Definition at line 286 of file meteo_stick.c.
References ads1220_periodic(), GpsState::course, MeteoStick::current_airspeed, MeteoStick::current_humidity, MeteoStick::current_pressure, MeteoStick::current_temperature, Ads1220::data, MeteoStick::diff_pressure, eeprom25AA256_read(), GpsState::fix, get_humidity(), gps, GpsState::gspeed, GpsState::hmsl, MeteoStick::humidity_period, LlaCoor_i::lat, GpsState::lla_pos, LlaCoor_i::lon, meteo_stick, MS_PITOT_COUNTER, MTOSTK_NUM_SENSORS, mtostk_populate_cal_from_buffer(), GpsState::ned_vel, pitot_counter, pprzLogFile, MeteoStick::pressure, pwm_input_period_tics, MeteoStick::reset_dp_offset, SPITransDone, MeteoStick::temperature, GpsState::tow, GpsState::week, and NedCoor_i::z.
struct MeteoStick meteo_stick |
General structure.
Definition at line 85 of file meteo_stick.c.
Referenced by get_diff(), get_humidity(), get_pressure(), get_temp(), meteo_stick_event(), meteo_stick_init(), and meteo_stick_periodic().