XPPlanes
X-Plane plugin to display additional planes based on network data
Classes | Typedefs | Functions
FlightData.h File Reference

Position, attitude, and configuration data that drives the planes' display. More...

Go to the source code of this file.

Classes

class  FlightData
 Transports flight data for location, attitude, configuration between the network and the main thread. More...
 
struct  FlightData::wakeTy
 Wake turbulence calculation data: wing span, wing area, aircraft mass. More...
 
struct  FlightData::lightsTy
 Aircraft lights. More...
 
class  FlightData_error
 Exception thrown by FlightData, e.g. when object creation impossible. More...
 

Typedefs

typedef std::chrono::time_point< std::chrono::system_clock > tsTy
 Timestamp format is a system clock's timepoint. More...
 
typedef std::shared_ptr< FlightDataptrFlightDataTy
 Smart pointer to flight data objects. More...
 
typedef std::list< ptrFlightDataTylistFlightDataTy
 List of flight data elements. More...
 
typedef std::map< XPMPPlaneID, listFlightDataTymapListFlightDataTy
 Map indexed by plane id holding lists of flight data elements. More...
 

Functions

bool FlightDataStartup ()
 Initialize the FlightData module. More...
 
void FlightDataShutdown ()
 Shutdown the FlightData module. More...
 

Detailed Description

Position, attitude, and configuration data that drives the planes' display.

This data is passed from the network thread to the main thread.

Author
Birger Hoppe

Class Documentation

◆ FlightData::lightsTy

struct FlightData::lightsTy

Aircraft lights.

Class Members
bool beacon: 1 beacon lights
bool defined: 1 are lights values valid, ie. defined?
bool landing: 1 landing lights
bool nav: 1 navigation lights
bool strobe: 1 strobe lights
bool taxi: 1 taxi lights

Typedef Documentation

◆ listFlightDataTy

typedef std::list<ptrFlightDataTy> listFlightDataTy

List of flight data elements.

◆ mapListFlightDataTy

typedef std::map<XPMPPlaneID,listFlightDataTy> mapListFlightDataTy

Map indexed by plane id holding lists of flight data elements.

◆ ptrFlightDataTy

typedef std::shared_ptr<FlightData> ptrFlightDataTy

Smart pointer to flight data objects.

◆ tsTy

typedef std::chrono::time_point<std::chrono::system_clock> tsTy

Timestamp format is a system clock's timepoint.

Function Documentation

◆ FlightDataShutdown()

void FlightDataShutdown ( )

Shutdown the FlightData module.

◆ FlightDataStartup()

bool FlightDataStartup ( )

Initialize the FlightData module.