 |
JSBSim Flight Dynamics Model
1.1.11 (13 Feb 2022)
An Open Source Flight Dynamics and Control Software Library in C++
|
34 #ifndef FGGROUNDCALLBACK_H
35 #define FGGROUNDCALLBACK_H
44 class FGColumnVector3;
96 {
return GetAGLevel(time, location, contact, normal, v, w); }
108 virtual void SetEllipse(
double semimajor,
double semiminor) {}
129 a(semiMajor), b(semiMinor) {}
137 { mTerrainElevation = h; }
140 { a = semimajor; b = semiminor; }
144 double mTerrainElevation = 0.0;
virtual void SetEllipse(double semimajor, double semiminor)
Set the planet semimajor and semiminor axes.
This class implements a 3 element column vector.
FGLocation holds an arbitrary location in the Earth centered Earth fixed reference frame (ECEF).
double GetAGLevel(double t, const FGLocation &location, FGLocation &contact, FGColumnVector3 &normal, FGColumnVector3 &v, FGColumnVector3 &w) const override
Compute the altitude above ground.
virtual void SetTerrainElevation(double h)
Set the terrain elevation.
virtual double GetAGLevel(double t, const FGLocation &location, FGLocation &contact, FGColumnVector3 &normal, FGColumnVector3 &v, FGColumnVector3 &w) const =0
Compute the altitude above ground.
This class provides callback slots to get ground specific data.
void SetEllipse(double semimajor, double semiminor) override
Set the planet semimajor and semiminor axes.
void SetTime(double _time)
Set the simulation time.
virtual double GetAGLevel(const FGLocation &location, FGLocation &contact, FGColumnVector3 &normal, FGColumnVector3 &v, FGColumnVector3 &w) const
Compute the altitude above ground.
void SetTerrainElevation(double h) override
Set the terrain elevation.