Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
UART interface for Aeroprobe On-The-Fly! air data computer. More...
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "mcu_periph/uart.h"
#include "messages.h"
#include "subsystems/datalink/downlink.h"
#include "met_module.h"
#include "airspeed_otf.h"
Go to the source code of this file.
Macros | |
#define | OTF_UNINIT 0x00 |
#define | OTF_WAIT_START OTF_UNINIT |
#define | OTF_WAIT_COUNTER 0x01 |
#define | OTF_WAIT_ANGLES 0x02 |
#define | OTF_WAIT_ALTITUDE 0x03 |
#define | OTF_WAIT_CHECKSUM 0x04 |
#define | OTF_START 0x0A |
#define | OTF_LIMITER ',' |
#define | OTF_END 0x0D |
Functions | |
void * | _sbrk (int) |
void | airspeed_otf_parse (char c) |
void | airspeed_otf_init (void) |
void | airspeed_otf_event (void) |
void | airspeed_otf_periodic (void) |
UART interface for Aeroprobe On-The-Fly! air data computer.
Definition in file airspeed_otf.c.
#define OTF_END 0x0D |
Definition at line 51 of file airspeed_otf.c.
Referenced by airspeed_otf_parse().
#define OTF_LIMITER ',' |
Definition at line 50 of file airspeed_otf.c.
Referenced by airspeed_otf_parse().
#define OTF_START 0x0A |
Definition at line 49 of file airspeed_otf.c.
Referenced by airspeed_otf_parse().
#define OTF_UNINIT 0x00 |
Definition at line 42 of file airspeed_otf.c.
Referenced by airspeed_otf_parse().
#define OTF_WAIT_ALTITUDE 0x03 |
Definition at line 46 of file airspeed_otf.c.
Referenced by airspeed_otf_parse().
#define OTF_WAIT_ANGLES 0x02 |
Definition at line 45 of file airspeed_otf.c.
Referenced by airspeed_otf_parse().
#define OTF_WAIT_CHECKSUM 0x04 |
Definition at line 47 of file airspeed_otf.c.
Referenced by airspeed_otf_parse().
#define OTF_WAIT_COUNTER 0x01 |
Definition at line 44 of file airspeed_otf.c.
Referenced by airspeed_otf_parse().
#define OTF_WAIT_START OTF_UNINIT |
Definition at line 43 of file airspeed_otf.c.
Referenced by airspeed_otf_parse().
void * _sbrk | ( | int | a | ) |
Definition at line 55 of file airspeed_otf.c.
void airspeed_otf_event | ( | void | ) |
Definition at line 154 of file airspeed_otf.c.
References airspeed_otf_parse(), MetBuffer, and MetGetch.
void airspeed_otf_init | ( | void | ) |
Definition at line 150 of file airspeed_otf.c.
void airspeed_otf_parse | ( | char | c | ) |
Definition at line 58 of file airspeed_otf.c.
References counter, DefaultChannel, DefaultDevice, OTF_END, OTF_LIMITER, OTF_START, OTF_UNINIT, OTF_WAIT_ALTITUDE, OTF_WAIT_ANGLES, OTF_WAIT_CHECKSUM, OTF_WAIT_COUNTER, and OTF_WAIT_START.
Referenced by airspeed_otf_event().
void airspeed_otf_periodic | ( | void | ) |
Definition at line 162 of file airspeed_otf.c.