LTAPI
API to access LiveTraffic's aircraft information
Classes | Public Member Functions | Public Attributes | List of all members
LTAPIAircraft::LTAPIBulkData Struct Reference

Bulk data transfer structur for communication with LTAPI. More...

#include <LTAPI.h>

Classes

struct  BulkBitsTy
 

Public Member Functions

 LTAPIBulkData ()
 Constructor initializes some data without defaults. More...
 

Public Attributes

uint64_t keyNum = 0
 a/c id, usually transp hex code, or any other unique id (FLARM etc.) More...
 
float lat_f = 0.0f
 deprecated: [°] latitude More...
 
float lon_f = 0.0f
 deprecated: [°] longitude More...
 
float alt_ft_f = 0.0f
 deprecated: [ft] altitude More...
 
float heading = 0.0f
 [°] heading More...
 
float track = 0.0f
 [°] track over ground More...
 
float roll = 0.0f
 [°] roll: positive right More...
 
float pitch = 0.0f
 [°] pitch: positive up More...
 
float speed_kt = 0.0f
 [kt] ground speed More...
 
float vsi_ft = 0.0f
 [ft/minute] vertical speed, positive up More...
 
float terrainAlt_ft = 0.0f
 [ft] terrain altitude beneath plane More...
 
float height_ft = 0.0f
 [ft] height AGL More...
 
float flaps = 0.0f
 flap position: 0.0 retracted, 1.0 fully extended More...
 
float gear = 0.0f
 gear position: 0.0 retracted, 1.0 fully extended More...
 
float reversers = 0.0f
 reversers position: 0.0 closed, 1.0 fully opened More...
 
float bearing = 0.0f
 [°] to current camera position More...
 
float dist_nm = 0.0f
 [nm] distance to current camera More...
 
struct LTAPIAircraft::LTAPIBulkData::BulkBitsTy bits
 Flights phase, on-ground status, lights. More...
 
double lat = 0.0f
 [°] latitude More...
 
double lon = 0.0f
 [°] longitude More...
 
double alt_ft = 0.0f
 [ft] altitude More...
 

Detailed Description

Bulk data transfer structur for communication with LTAPI.

Note
Structure needs to be in synch with LiveTraffic, version differences are handled using a struct size "negotiation", but order of fields must match.

Class Documentation

◆ LTAPIAircraft::LTAPIBulkData::BulkBitsTy

struct LTAPIAircraft::LTAPIBulkData::BulkBitsTy
Class Members
bool bcn: 1 beacon light
bool camera: 1 is LiveTraffic's camera on this aircraft?
unsigned filler1: 1 unused
unsigned filler2: 8
unsigned filler3: 32
bool land: 1 landing lights
int multiIdx: 8 multiplayer index if plane reported via sim/multiplayer/position dataRefs, 0 if not
bool nav: 1 navigaton lights
bool onGnd: 1 Is plane on ground?
LTFlightPhase phase: 8 flight phase, see LTAircraft::FlightPhase
bool strb: 1 strobe light
bool taxi: 1 taxi lights

Constructor & Destructor Documentation

◆ LTAPIBulkData()

LTAPIAircraft::LTAPIBulkData::LTAPIBulkData ( )
inline

Constructor initializes some data without defaults.

Member Data Documentation

◆ alt_ft

double LTAPIAircraft::LTAPIBulkData::alt_ft = 0.0f

[ft] altitude

◆ alt_ft_f

float LTAPIAircraft::LTAPIBulkData::alt_ft_f = 0.0f

deprecated: [ft] altitude

◆ bearing

float LTAPIAircraft::LTAPIBulkData::bearing = 0.0f

[°] to current camera position

◆ bits

struct LTAPIAircraft::LTAPIBulkData::BulkBitsTy LTAPIAircraft::LTAPIBulkData::bits

Flights phase, on-ground status, lights.

◆ dist_nm

float LTAPIAircraft::LTAPIBulkData::dist_nm = 0.0f

[nm] distance to current camera

◆ flaps

float LTAPIAircraft::LTAPIBulkData::flaps = 0.0f

flap position: 0.0 retracted, 1.0 fully extended

◆ gear

float LTAPIAircraft::LTAPIBulkData::gear = 0.0f

gear position: 0.0 retracted, 1.0 fully extended

◆ heading

float LTAPIAircraft::LTAPIBulkData::heading = 0.0f

[°] heading

◆ height_ft

float LTAPIAircraft::LTAPIBulkData::height_ft = 0.0f

[ft] height AGL

◆ keyNum

uint64_t LTAPIAircraft::LTAPIBulkData::keyNum = 0

a/c id, usually transp hex code, or any other unique id (FLARM etc.)

◆ lat

double LTAPIAircraft::LTAPIBulkData::lat = 0.0f

[°] latitude

◆ lat_f

float LTAPIAircraft::LTAPIBulkData::lat_f = 0.0f

deprecated: [°] latitude

◆ lon

double LTAPIAircraft::LTAPIBulkData::lon = 0.0f

[°] longitude

◆ lon_f

float LTAPIAircraft::LTAPIBulkData::lon_f = 0.0f

deprecated: [°] longitude

◆ pitch

float LTAPIAircraft::LTAPIBulkData::pitch = 0.0f

[°] pitch: positive up

◆ reversers

float LTAPIAircraft::LTAPIBulkData::reversers = 0.0f

reversers position: 0.0 closed, 1.0 fully opened

◆ roll

float LTAPIAircraft::LTAPIBulkData::roll = 0.0f

[°] roll: positive right

◆ speed_kt

float LTAPIAircraft::LTAPIBulkData::speed_kt = 0.0f

[kt] ground speed

◆ terrainAlt_ft

float LTAPIAircraft::LTAPIBulkData::terrainAlt_ft = 0.0f

[ft] terrain altitude beneath plane

◆ track

float LTAPIAircraft::LTAPIBulkData::track = 0.0f

[°] track over ground

◆ vsi_ft

float LTAPIAircraft::LTAPIBulkData::vsi_ft = 0.0f

[ft/minute] vertical speed, positive up


The documentation for this struct was generated from the following file: