XPMP2
X-Plane multiplayer library 2 - using instancing
XPMP2::Aircraft::wakeTy Struct Reference

Wake dataRef support. More...

#include <XPMPAircraft.h>

Public Member Functions

void clear ()
 clear all values to defaults
 
bool needsDefaults () const
 
void applyDefaults (const std::string &_wtc, bool _bOverwriteAllFields=true)
 based on Doc8643 WTC fill with defaults
 
void fillUpFrom (const wakeTy &o)
 Copies values only for non-NAN fields.
 

Public Attributes

float wingSpan_m = NAN
 wing span of the aircraft creating wake turbulence
 
float wingArea_m2 = NAN
 wing area (total area of both wings combined) of the aircraft creating wake turbulence
 
float mass_kg = NAN
 actual mass of the aircraft creating the wake
 

Detailed Description

Wake dataRef support.

See also
https://developer.x-plane.com/article/plugin-traffic-wake-turbulence/

If values aren't set during aircraft creation, ie. remain at NAN, then defaults will be applied based on the aircraft's wake turbulence category, looked up from the Doc8643 list via ICAO aircraft type designator.

Member Function Documentation

◆ applyDefaults()

void XPMP2::Aircraft::wakeTy::applyDefaults ( const std::string & _wtc,
bool _bOverwriteAllFields = true )

based on Doc8643 WTC fill with defaults

◆ clear()

void XPMP2::Aircraft::wakeTy::clear ( )
inline

clear all values to defaults

◆ fillUpFrom()

void XPMP2::Aircraft::wakeTy::fillUpFrom ( const wakeTy & o)

Copies values only for non-NAN fields.

◆ needsDefaults()

bool XPMP2::Aircraft::wakeTy::needsDefaults ( ) const

any value left at NAN, ie. requires setting from Doc8643 WTC defaults?

Member Data Documentation

◆ mass_kg

float XPMP2::Aircraft::wakeTy::mass_kg = NAN

actual mass of the aircraft creating the wake

◆ wingArea_m2

float XPMP2::Aircraft::wakeTy::wingArea_m2 = NAN

wing area (total area of both wings combined) of the aircraft creating wake turbulence

◆ wingSpan_m

float XPMP2::Aircraft::wakeTy::wingSpan_m = NAN

wing span of the aircraft creating wake turbulence


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