Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
UART interface for Aeroprobe uADC air data computer. More...
#include "airspeed_uADC.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "modules/datalink/downlink.h"
#include <ctype.h>
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | uADC_UNINIT 0 |
#define | uADC_WAIT_START uADC_UNINIT |
#define | uADC_WAIT_COUNTER 1 |
#define | uADC_WAIT_ANGLES 2 |
#define | uADC_WAIT_ALTITUDE 3 |
#define | uADC_WAIT_PRESSURES 4 |
#define | uADC_WAIT_CHECKSUM 5 |
#define | uADC_START 0x0A |
#define | uADC_LIMITER ',' |
#define | uADC_END 0x0D |
Functions | |
void | airspeed_uadc_parse (char c) |
void | airspeed_uADC_init (void) |
void | airspeed_uADC_event (void) |
void | airspeed_uADC_periodic (void) |
Variables | |
static uint32_t | counter |
static int16_t | course [3] |
static int32_t | altitude |
static int32_t | pressures [2] |
static uint8_t | checksum |
static uint8_t | uadc_status = uADC_UNINIT |
static uint8_t | uadc_idx = 0 |
static uint8_t | uadc_tab_idx = 0 |
UART interface for Aeroprobe uADC air data computer.
Definition in file airspeed_uADC.c.
#define uADC_END 0x0D |
Definition at line 55 of file airspeed_uADC.c.
#define uADC_LIMITER ',' |
Definition at line 54 of file airspeed_uADC.c.
#define uADC_START 0x0A |
Definition at line 53 of file airspeed_uADC.c.
#define uADC_UNINIT 0 |
Definition at line 45 of file airspeed_uADC.c.
#define uADC_WAIT_ALTITUDE 3 |
Definition at line 49 of file airspeed_uADC.c.
#define uADC_WAIT_ANGLES 2 |
Definition at line 48 of file airspeed_uADC.c.
#define uADC_WAIT_CHECKSUM 5 |
Definition at line 51 of file airspeed_uADC.c.
#define uADC_WAIT_COUNTER 1 |
Definition at line 47 of file airspeed_uADC.c.
#define uADC_WAIT_PRESSURES 4 |
Definition at line 50 of file airspeed_uADC.c.
#define uADC_WAIT_START uADC_UNINIT |
Definition at line 46 of file airspeed_uADC.c.
void airspeed_uADC_event | ( | void | ) |
Definition at line 197 of file airspeed_uADC.c.
References airspeed_uadc_parse(), uart_char_available(), and uart_getch().
void airspeed_uADC_init | ( | void | ) |
Definition at line 193 of file airspeed_uADC.c.
void airspeed_uadc_parse | ( | char | c | ) |
Definition at line 67 of file airspeed_uADC.c.
References altitude, checksum, counter, course, pprzlog_tp, pressures, uADC_END, uadc_idx, uADC_LIMITER, uADC_START, uadc_status, uadc_tab_idx, uADC_UNINIT, uADC_WAIT_ALTITUDE, uADC_WAIT_ANGLES, uADC_WAIT_CHECKSUM, uADC_WAIT_COUNTER, uADC_WAIT_PRESSURES, and uADC_WAIT_START.
Referenced by airspeed_uADC_event().
void airspeed_uADC_periodic | ( | void | ) |
Definition at line 205 of file airspeed_uADC.c.
References altitude, checksum, counter, course, DefaultChannel, DefaultDevice, and pressures.
|
static |
Definition at line 59 of file airspeed_uADC.c.
Referenced by airspeed_otf_parse(), airspeed_uadc_parse(), airspeed_uADC_periodic(), draw_osd(), gvf_nav_survey_polygon_setup(), nav_survey_polygon_setup(), nav_survey_zamboni_setup(), and pprz_isa_pressure_of_altitude().
|
static |
Definition at line 61 of file airspeed_uADC.c.
Referenced by actuators_bebop_checksum(), actuators_disco_checksum(), airspeed_otf_parse(), airspeed_uadc_parse(), airspeed_uADC_periodic(), compute_checksum(), humid_sht_periodic(), navdata_read(), sdp3x_crc(), smartPortDataReceive(), sts3032_event(), and write_buf().
|
static |
Definition at line 57 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse(), and airspeed_uADC_periodic().
|
static |
Definition at line 58 of file airspeed_uADC.c.
Referenced by acInfoCalcVelocityEnu_f(), acInfoCalcVelocityEnu_i(), ahrs_fc_update_gps(), ahrs_icq_update_gps(), airspeed_otf_parse(), airspeed_uadc_parse(), airspeed_uADC_periodic(), dc_info(), dc_periodic(), dc_send_shot_position(), Drift_correction(), gps_datalink_parse_REMOTE_GPS_LOCAL(), gps_datalink_publish(), gvf_control_2D(), gvf_parametric_control_2D(), ins_float_invariant_update_gps(), mavlink_send_gps_raw_int(), mf_daq_send_report(), nmea_parse_RMC(), parse_acinfo_dl(), send_gps(), send_gps_lla(), send_minimal_com(), set_ac_info_lla(), and set_ac_info_utm().
|
static |
Definition at line 60 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse(), and airspeed_uADC_periodic().
|
static |
Definition at line 63 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
|
static |
Definition at line 62 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
|
static |
Definition at line 64 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().