Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
airspeed_otf.c File Reference

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"
+ Include dependency graph for airspeed_otf.c:

Go to the source code of this file.

Macros

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE
 
#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)
 

Detailed Description

UART interface for Aeroprobe On-The-Fly! air data computer.

Definition in file airspeed_otf.c.

Macro Definition Documentation

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE

Definition at line 42 of file airspeed_otf.c.

#define OTF_END   0x0D

Definition at line 54 of file airspeed_otf.c.

Referenced by airspeed_otf_parse().

#define OTF_LIMITER   ','

Definition at line 53 of file airspeed_otf.c.

Referenced by airspeed_otf_parse().

#define OTF_START   0x0A

Definition at line 52 of file airspeed_otf.c.

Referenced by airspeed_otf_parse().

#define OTF_UNINIT   0x00

Definition at line 45 of file airspeed_otf.c.

Referenced by airspeed_otf_parse().

#define OTF_WAIT_ALTITUDE   0x03

Definition at line 49 of file airspeed_otf.c.

Referenced by airspeed_otf_parse().

#define OTF_WAIT_ANGLES   0x02

Definition at line 48 of file airspeed_otf.c.

Referenced by airspeed_otf_parse().

#define OTF_WAIT_CHECKSUM   0x04

Definition at line 50 of file airspeed_otf.c.

Referenced by airspeed_otf_parse().

#define OTF_WAIT_COUNTER   0x01

Definition at line 47 of file airspeed_otf.c.

Referenced by airspeed_otf_parse().

#define OTF_WAIT_START   OTF_UNINIT

Definition at line 46 of file airspeed_otf.c.

Referenced by airspeed_otf_parse().

Function Documentation

void* _sbrk ( int  a)

Definition at line 58 of file airspeed_otf.c.

void airspeed_otf_event ( void  )

Definition at line 155 of file airspeed_otf.c.

References airspeed_otf_parse(), and MetLink.

+ Here is the call graph for this function:

void airspeed_otf_init ( void  )

Definition at line 152 of file airspeed_otf.c.

void airspeed_otf_parse ( char  c)

Definition at line 61 of file airspeed_otf.c.

References c, 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().

+ Here is the caller graph for this function:

void airspeed_otf_periodic ( void  )

Definition at line 162 of file airspeed_otf.c.