79 bool Run(
bool Holding)
override;
107 return GroundCallback->GetAGLevel(location, contact, normal, velocity,
117 return GroundCallback->GetAGLevel(location, lDummy, vDummy, vDummy,
131 GroundCallback->SetTerrainElevation(h);
140 GroundCallback->SetTime(time);
207 static constexpr double gAccelReference = 9.80665 /
fttom;
216 std::unique_ptr<FGGroundCallback> GroundCallback;
218 double GetGAccel(
double r)
const;
221 void Debug(
int from)
override;
This class implements a 3 element column vector.
This class provides callback slots to get ground specific data.
FGMatrix33 GetTec2l(const FGLocation &location) const
Transform matrix from the earth centered to local horizontal frame.
void SetTime(double time)
Set the simulation time.
double GetAltitudeAGL(const FGLocation &location) const
Get the altitude above ground level.
double GetSemimajor(void) const
void SetGroundCallback(FGGroundCallback *gc)
Sets the ground callback pointer.
void SetOmegaPlanet(double rate)
void SetGravityType(int gt)
Set the gravity type.
bool Run(bool Holding) override
Runs the Inertial model; called by the Executive Can pass in a value indicating if the executive is d...
double GetContactPoint(const FGLocation &location, FGLocation &contact, FGColumnVector3 &normal, FGColumnVector3 &velocity, FGColumnVector3 &ang_velocity) const
Get terrain contact point information below the current location.
bool Load(Element *el) override
eGravType
These define the indices use to select the gravitation models.
@ gtStandard
Evaluate gravity using Newton's classical formula assuming the Earth is spherical.
@ gtWGS84
Evaluate gravity using WGS84 formulas that take the Earth oblateness into account.
double GetSemiminor(void) const
static constexpr double GetStandardGravity(void)
void SetAltitudeAGL(FGLocation &location, double altitudeAGL)
Set the altitude above ground level.
struct JSBSim::FGInertial::Inputs in
int GetGravityType(void) const
Get the gravity type.
FGMatrix33 GetTl2ec(const FGLocation &location) const
Transform matrix from the local horizontal frame to earth centered.
const FGColumnVector3 & GetGravity(void) const
void SetTerrainElevation(double h)
Set the terrain elevation above sea level.
const FGColumnVector3 & GetOmegaPlanet() const
static constexpr double fttom
FGLocation holds an arbitrary location in the Earth centered Earth fixed reference frame (ECEF).
Handles matrix math operations.
FGMatrix33 Transposed(void) const
Transposed matrix.
FGModel(FGFDMExec *)
Constructor.