XPPlanes
X-Plane plugin to display additional planes based on network data
Macros | Enumerations
FD_RTTFC.cpp File Reference

Converter for RTTFC type of data. More...

#include "XPPlanes.h"

Macros

#define TO_DOUBLE(v)   v = std::stod(tok); break;
 
#define TO_FLOAT(v)   v = std::stof(tok); break;
 
#define TO_STR(v)   v = tok; break;
 

Enumerations

enum  RT_RTTFC_FIELDS_TY : int {
  RT_RTTFC_REC_TYPE = 0 , RT_RTTFC_HEXID , RT_RTTFC_LAT , RT_RTTFC_LON ,
  RT_RTTFC_ALT_BARO , RT_RTTFC_BARO_RATE , RT_RTTFC_GND , RT_RTTFC_TRACK ,
  RT_RTTFC_GSP , RT_RTTFC_CS_ICAO , RT_RTTFC_AC_TYPE , RT_RTTFC_AC_TAILNO ,
  RT_RTTFC_FROM_IATA , RT_RTTFC_TO_IATA , RT_RTTFC_TIMESTAMP , RT_RTTFC_SOURCE ,
  RT_RTTFC_CS_IATA , RT_RTTFC_MSG_TYPE , RT_RTTFC_ALT_GEOM , RT_RTTFC_IAS ,
  RT_RTTFC_TAS , RT_RTTFC_MACH , RT_RTTFC_TRACK_RATE , RT_RTTFC_ROLL ,
  RT_RTTFC_MAG_HEADING , RT_RTTFC_TRUE_HEADING , RT_RTTFC_GEOM_RATE , RT_RTTFC_EMERGENCY ,
  RT_RTTFC_CATEGORY , RT_RTTFC_NAV_QNH , RT_RTTFC_NAV_ALTITUDE_MCP , RT_RTTFC_NAV_ALTITUDE_FMS ,
  RT_RTTFC_NAV_HEADING , RT_RTTFC_NAV_MODES , RT_RTTFC_SEEN , RT_RTTFC_RSSI ,
  RT_RTTFC_WINDDIR , RT_RTTFC_WINDSPD , RT_RTTFC_OAT , RT_RTTFC_TAT ,
  RT_RTTFC_ISICAOHEX , RT_RTTFC_AUGMENTATION_STATUS , RT_RTTFC_MIN_TFC_FIELDS
}
 Fields in a RealTraffic RTTFC message (since v9 on port 49005) More...
 

Detailed Description

Converter for RTTFC type of data.

RTTFC is a CSV-style format introduced by RealTraffic in v9

See also
https://www.flyrealtraffic.com/RTdev2.0.pdf
Author
Birger Hoppe

Macro Definition Documentation

◆ TO_DOUBLE

#define TO_DOUBLE (   v)    v = std::stod(tok); break;

◆ TO_FLOAT

#define TO_FLOAT (   v)    v = std::stof(tok); break;

◆ TO_STR

#define TO_STR (   v)    v = tok; break;

Enumeration Type Documentation

◆ RT_RTTFC_FIELDS_TY

enum RT_RTTFC_FIELDS_TY : int

Fields in a RealTraffic RTTFC message (since v9 on port 49005)

See also
LiveTraffic/Inc/LTRealTraffic.h
Enumerator
RT_RTTFC_REC_TYPE 

"RTTFC"

RT_RTTFC_HEXID 

transponder hex code, converted to decimal

RT_RTTFC_LAT 

latitude in degrees

RT_RTTFC_LON 

longitude in degrees

RT_RTTFC_ALT_BARO 

altitude in feet (barometric, not adapted for local pressure)

RT_RTTFC_BARO_RATE 

barometric vertical rate

RT_RTTFC_GND 

ground flag

RT_RTTFC_TRACK 

track

RT_RTTFC_GSP 

ground speed

RT_RTTFC_CS_ICAO 

ICAO call sign.

RT_RTTFC_AC_TYPE 

aircraft type

RT_RTTFC_AC_TAILNO 

aircraft registration

RT_RTTFC_FROM_IATA 

origin IATA code

RT_RTTFC_TO_IATA 

destination IATA code

RT_RTTFC_TIMESTAMP 

unix epoch timestamp when data was last updated

RT_RTTFC_SOURCE 

data source

RT_RTTFC_CS_IATA 

IATA call sign.

RT_RTTFC_MSG_TYPE 

type of message

RT_RTTFC_ALT_GEOM 

geometric altitude (WGS84 GPS altitude)

RT_RTTFC_IAS 

indicated air speed

RT_RTTFC_TAS 

true air speed

RT_RTTFC_MACH 

Mach number.

RT_RTTFC_TRACK_RATE 

rate of change for track

RT_RTTFC_ROLL 

roll in degrees, negative = left

RT_RTTFC_MAG_HEADING 

magnetic heading

RT_RTTFC_TRUE_HEADING 

true heading

RT_RTTFC_GEOM_RATE 

geometric vertical rate

RT_RTTFC_EMERGENCY 

emergency status

RT_RTTFC_CATEGORY 

category of the aircraft

RT_RTTFC_NAV_QNH 

QNH setting navigation is based on.

RT_RTTFC_NAV_ALTITUDE_MCP 

altitude dialled into the MCP in the flight deck

RT_RTTFC_NAV_ALTITUDE_FMS 

altitude set by the flight management system (FMS)

RT_RTTFC_NAV_HEADING 

heading set by the MCP

RT_RTTFC_NAV_MODES 

which modes the autopilot is currently in

RT_RTTFC_SEEN 

seconds since any message updated this aircraft state vector

RT_RTTFC_RSSI 

signal strength of the receiver

RT_RTTFC_WINDDIR 

wind direction in degrees true north

RT_RTTFC_WINDSPD 

wind speed in kts

RT_RTTFC_OAT 

outside air temperature / static air temperature

RT_RTTFC_TAT 

total air temperature

RT_RTTFC_ISICAOHEX 

is this hexid an ICAO assigned ID.

RT_RTTFC_AUGMENTATION_STATUS 

has this record been augmented from multiple sources

RT_RTTFC_MIN_TFC_FIELDS 

always last, minimum number of fields