ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
pflaa.h
1#ifndef INC_NMEA_GPRMC_H
2#define INC_NMEA_GPRMC_H
3
4#include <stdlib.h>
5#include <string.h>
6#include <time.h>
7
8/*
9Example:
10
11$PFLAA,0,-1234,1234,220,2,DD8F12,180,,30,-1.4,1*
12
13There is a glider in the south-east direction, 1.7km away (1.2km south, 1.2km
14east), 220m higher flying on south track with a ground speed of 30m/s in a slight
15left turn with 4.5°/s turning rate, sinking with 1.4m/s. Its ID is a static FLARM-ID
16“DD8F12”. There is no danger.
17
18*/
19typedef struct {
20 int alarmLevel;
21 int relNorth;
22 int relEast;
23 int relVertical;
24 int idType;
25 char ID[6];
26 int track;
27 int groundSpeed;
28 float climbRate;
29 char acftType[1];
30 int noTrack;
32
33/* Value indexes */
34#define NMEA_PFLAA_ALARMLEVEL 0
35#define NMEA_PFLAA_RELATIVE_NORTH 1
36#define NMEA_PFLAA_RELATIVE_EAST 2
37#define NMEA_PFLAA_RELATIVE_VERTICAL 3
38#define NMEA_PFLAA_IDTYPE 4
39#define NMEA_PFLAA_ID 5
40#define NMEA_PFLAA_TRACK 6
41//#define NMEA_PFLAA_TURN_RATE 7
42#define NMEA_PFLAA_GROUND_SPEED 7
43#define NMEA_PFLAA_CLIMB_RATE 8
44#define NMEA_PFLAA_ACFTTYPE 9
45#define NMEA_PFLAA_NO_TRACK 10
46
47#endif /* INC_NMEA_PFLAA_H */
Definition: pflaa.h:19