Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces 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 "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
#include <ctype.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 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 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().

Function Documentation

void * _sbrk ( int  a)

Definition at line 55 of file airspeed_otf.c.

void airspeed_otf_event ( void  )

Definition at line 155 of file airspeed_otf.c.

References airspeed_otf_parse(), MetBuffer, and MetGetch.

+ Here is the call graph for this function:

void airspeed_otf_init ( void  )

Definition at line 151 of file airspeed_otf.c.

void airspeed_otf_parse ( char  c)
void airspeed_otf_periodic ( void  )

Definition at line 163 of file airspeed_otf.c.