Paparazzi UAS
v5.14.0_stable-0-g3f680d1
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 "subsystems/datalink/downlink.h"
#include <ctype.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 54 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
#define uADC_LIMITER ',' |
Definition at line 53 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
#define uADC_START 0x0A |
Definition at line 52 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
#define uADC_UNINIT 0 |
Definition at line 44 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
#define uADC_WAIT_ALTITUDE 3 |
Definition at line 48 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
#define uADC_WAIT_ANGLES 2 |
Definition at line 47 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
#define uADC_WAIT_CHECKSUM 5 |
Definition at line 50 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
#define uADC_WAIT_COUNTER 1 |
Definition at line 46 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
#define uADC_WAIT_PRESSURES 4 |
Definition at line 49 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
#define uADC_WAIT_START uADC_UNINIT |
Definition at line 45 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
void airspeed_uADC_event | ( | void | ) |
Definition at line 196 of file airspeed_uADC.c.
References airspeed_uadc_parse(), uart_char_available(), and uart_getch().
void airspeed_uADC_init | ( | void | ) |
Definition at line 192 of file airspeed_uADC.c.
void airspeed_uadc_parse | ( | char | c | ) |
Definition at line 66 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 204 of file airspeed_uADC.c.
References altitude, checksum, counter, course, DefaultChannel, DefaultDevice, and pressures.
|
static |
Definition at line 58 of file airspeed_uADC.c.
Referenced by airspeed_otf_parse(), airspeed_uadc_parse(), airspeed_uADC_periodic(), gvf_nav_survey_polygon_setup(), nav_survey_polygon_setup(), and nav_survey_zamboni_setup().
|
static |
Definition at line 60 of file airspeed_uADC.c.
Referenced by actuators_bebop_checksum(), actuators_disco_checksum(), airspeed_otf_parse(), airspeed_uadc_parse(), airspeed_uADC_periodic(), humid_sht_periodic(), and navdata_read().
|
static |
Definition at line 56 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse(), and airspeed_uADC_periodic().
|
static |
Definition at line 57 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(), gvf_control_2D(), mavlink_send_gps_raw_int(), mf_daq_send_report(), nmea_parse_RMC(), parse_acinfo_dl(), parse_gps_datalink(), send_gps(), and send_gps_lla().
|
static |
Definition at line 59 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse(), and airspeed_uADC_periodic().
|
static |
Definition at line 62 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
|
static |
Definition at line 61 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().
|
static |
Definition at line 63 of file airspeed_uADC.c.
Referenced by airspeed_uadc_parse().