FlightGear next
JSBSim::FGDefaultGroundCallback Class Reference

#include <FGGroundCallback.h>

Inherits JSBSim::FGGroundCallback.

Public Member Functions

 FGDefaultGroundCallback (double semiMajor, double semiMinor)
 
double GetAGLevel (double t, const FGLocation &location, FGLocation &contact, FGColumnVector3 &normal, FGColumnVector3 &v, FGColumnVector3 &w) const override
 Compute the altitude above ground.
 
void SetTerrainElevation (double h) override
 Set the terrain elevation.
 
void SetEllipse (double semimajor, double semiminor) override
 Set the planet semimajor and semiminor axes.
 
- Public Member Functions inherited from JSBSim::FGGroundCallback
 FGGroundCallback ()
 
virtual ~FGGroundCallback ()
 
virtual double GetAGLevel (const FGLocation &location, FGLocation &contact, FGColumnVector3 &normal, FGColumnVector3 &v, FGColumnVector3 &w) const
 Compute the altitude above ground.
 
void SetTime (double _time)
 Set the simulation time.
 

Additional Inherited Members

- Protected Attributes inherited from JSBSim::FGGroundCallback
double time
 

Detailed Description

Definition at line 125 of file FGGroundCallback.h.

Constructor & Destructor Documentation

◆ FGDefaultGroundCallback()

JSBSim::FGDefaultGroundCallback::FGDefaultGroundCallback ( double semiMajor,
double semiMinor )
inlineexplicit

Definition at line 128 of file FGGroundCallback.h.

Member Function Documentation

◆ GetAGLevel()

double JSBSim::FGDefaultGroundCallback::GetAGLevel ( double t,
const FGLocation & location,
FGLocation & contact,
FGColumnVector3 & normal,
FGColumnVector3 & v,
FGColumnVector3 & w ) const
overridevirtual

Compute the altitude above ground.

The altitude depends on time t and location l.

Parameters
tsimulation time
llocation
contactContact point location below the location l
normalNormal vector at the contact point
vLinear velocity at the contact point
wAngular velocity at the contact point
Returns
altitude above ground

Implements JSBSim::FGGroundCallback.

Definition at line 41 of file FGGroundCallback.cpp.

◆ SetEllipse()

void JSBSim::FGDefaultGroundCallback::SetEllipse ( double semimajor,
double semiminor )
inlineoverridevirtual

Set the planet semimajor and semiminor axes.

Only needs to be implemented if JSBSim should be allowed to modify the planet dimensions.

Reimplemented from JSBSim::FGGroundCallback.

Definition at line 139 of file FGGroundCallback.h.

◆ SetTerrainElevation()

void JSBSim::FGDefaultGroundCallback::SetTerrainElevation ( double h)
inlineoverridevirtual

Set the terrain elevation.

Only needs to be implemented if JSBSim should be allowed to modify the local terrain radius (see the default implementation)

Reimplemented from JSBSim::FGGroundCallback.

Definition at line 136 of file FGGroundCallback.h.


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