FlightGear next
PerformanceData Class Reference

Data storage for aircraft performance data. More...

#include <performancedata.hxx>

Public Member Functions

 PerformanceData ()
 
 PerformanceData (const PerformanceData *clone)
 
void initFromProps (SGPropertyNode *props)
 
virtual ~PerformanceData ()=default
 
double actualSpeed (const FGAIAircraft *ac, double tgt_speed, double dt, bool needMaxBrake)
 
double actualBankAngle (const FGAIAircraft *ac, double tgt_roll, double dt)
 
double actualPitch (const FGAIAircraft *ac, double tgt_pitch, double dt)
 
double actualHeading (const FGAIAircraft *ac, double tgt_heading, double dt)
 
double actualAltitude (const FGAIAircraft *ac, double tgt_altitude, double dt)
 
double actualVerticalSpeed (const FGAIAircraft *ac, double tgt_vs, double dt)
 
bool gearExtensible (const FGAIAircraft *ac)
 
double climbRate () const
 
double descentRate () const
 
double vRotate () const
 
double maximumBankAngle () const
 
double acceleration () const
 
double deceleration () const
 
double brakeDeceleration () const
 
double vTaxi () const
 
double vTakeoff () const
 
double vClimb () const
 
double vDescent () const
 
double vApproach () const
 
double vTouchdown () const
 
double vCruise () const
 
double wingSpan () const
 
double wingChord () const
 
double weight () const
 
double decelerationOnGround () const
 

Static Public Member Functions

static PerformanceDatagetDefaultData ()
 Last-resort fallback performance data.
 

Detailed Description

Data storage for aircraft performance data.

This is used to properly simulate the flight of AIAircrafts.

    @author Thomas F�rster <t.foerster@biologie.hu-berlin.de>

Definition at line 11 of file performancedata.hxx.

Constructor & Destructor Documentation

◆ PerformanceData() [1/2]

PerformanceData::PerformanceData ( )

Definition at line 25 of file performancedata.cxx.

◆ PerformanceData() [2/2]

PerformanceData::PerformanceData ( const PerformanceData * clone)
explicit

Definition at line 46 of file performancedata.cxx.

◆ ~PerformanceData()

virtual PerformanceData::~PerformanceData ( )
virtualdefault

Member Function Documentation

◆ acceleration()

double PerformanceData::acceleration ( ) const
inline

Definition at line 35 of file performancedata.hxx.

◆ actualAltitude()

double PerformanceData::actualAltitude ( const FGAIAircraft * ac,
double tgt_altitude,
double dt )

Definition at line 193 of file performancedata.cxx.

◆ actualBankAngle()

double PerformanceData::actualBankAngle ( const FGAIAircraft * ac,
double tgt_roll,
double dt )

Definition at line 146 of file performancedata.cxx.

◆ actualHeading()

double PerformanceData::actualHeading ( const FGAIAircraft * ac,
double tgt_heading,
double dt )

◆ actualPitch()

double PerformanceData::actualPitch ( const FGAIAircraft * ac,
double tgt_pitch,
double dt )

Definition at line 173 of file performancedata.cxx.

◆ actualSpeed()

double PerformanceData::actualSpeed ( const FGAIAircraft * ac,
double tgt_speed,
double dt,
bool needMaxBrake )

Definition at line 105 of file performancedata.cxx.

◆ actualVerticalSpeed()

double PerformanceData::actualVerticalSpeed ( const FGAIAircraft * ac,
double tgt_vs,
double dt )

Definition at line 202 of file performancedata.cxx.

◆ brakeDeceleration()

double PerformanceData::brakeDeceleration ( ) const
inline

Definition at line 37 of file performancedata.hxx.

◆ climbRate()

double PerformanceData::climbRate ( ) const
inline

Definition at line 31 of file performancedata.hxx.

◆ deceleration()

double PerformanceData::deceleration ( ) const
inline

Definition at line 36 of file performancedata.hxx.

◆ decelerationOnGround()

double PerformanceData::decelerationOnGround ( ) const

Definition at line 141 of file performancedata.cxx.

◆ descentRate()

double PerformanceData::descentRate ( ) const
inline

Definition at line 32 of file performancedata.hxx.

◆ gearExtensible()

bool PerformanceData::gearExtensible ( const FGAIAircraft * ac)

Definition at line 224 of file performancedata.cxx.

◆ getDefaultData()

PerformanceData * PerformanceData::getDefaultData ( )
static

Last-resort fallback performance data.

This is to avoid special-casing logic in the AIAircraft code, by ensuring we always have a valid _performance pointer.

Definition at line 19 of file performancedata.cxx.

◆ initFromProps()

void PerformanceData::initFromProps ( SGPropertyNode * props)

Definition at line 80 of file performancedata.cxx.

◆ maximumBankAngle()

double PerformanceData::maximumBankAngle ( ) const
inline

Definition at line 34 of file performancedata.hxx.

◆ vApproach()

double PerformanceData::vApproach ( ) const
inline

Definition at line 42 of file performancedata.hxx.

◆ vClimb()

double PerformanceData::vClimb ( ) const
inline

Definition at line 40 of file performancedata.hxx.

◆ vCruise()

double PerformanceData::vCruise ( ) const
inline

Definition at line 44 of file performancedata.hxx.

◆ vDescent()

double PerformanceData::vDescent ( ) const
inline

Definition at line 41 of file performancedata.hxx.

◆ vRotate()

double PerformanceData::vRotate ( ) const
inline

Definition at line 33 of file performancedata.hxx.

◆ vTakeoff()

double PerformanceData::vTakeoff ( ) const
inline

Definition at line 39 of file performancedata.hxx.

◆ vTaxi()

double PerformanceData::vTaxi ( ) const
inline

Definition at line 38 of file performancedata.hxx.

◆ vTouchdown()

double PerformanceData::vTouchdown ( ) const
inline

Definition at line 43 of file performancedata.hxx.

◆ weight()

double PerformanceData::weight ( ) const
inline

Definition at line 47 of file performancedata.hxx.

◆ wingChord()

double PerformanceData::wingChord ( ) const
inline

Definition at line 46 of file performancedata.hxx.

◆ wingSpan()

double PerformanceData::wingSpan ( ) const
inline

Definition at line 45 of file performancedata.hxx.


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