242 return Ts2b * (
vXYZn -
in.vXYZcg);
246 return vWhlBodyVec(idx);
253 const std::string&
GetName(
void)
const {
return name; }
273 return maxSteerAngle == 0.0 ? 0.0 :
radtodeg/maxSteerAngle*SteerAngle;
289 return vForce(
eX)*cos(SteerAngle) + vForce(
eY)*sin(SteerAngle); }
293 return vForce(
eY)*cos(SteerAngle) - vForce(
eX)*sin(SteerAngle); }
307 + vWhlVelVec(
eY)*sin(SteerAngle); }
309 - vWhlVelVec(
eX)*sin(SteerAngle); }
316 if (eSteerType !=
stFixed && !Castered)
338 double compressLength;
339 double compressSpeed;
340 double rollingFCoeff;
341 double Stiffness, Shape, Peak, Curvature;
346 double TakeoffDistanceTraveled;
347 double TakeoffDistanceTraveled50ft;
348 double LandingDistanceTraveled;
349 double MaximumStrutForce, StrutForce;
350 double MaximumStrutTravel;
357 bool StartedGroundRun;
358 bool LandingReported;
359 bool TakeoffReported;
371 double maxSteerAngle;
378 mutable bool useFCSGearPos;
380 void ComputeBrakeForceCoefficient(
void);
381 void ComputeSteeringAngle(
void);
382 void ComputeSlipAngle(
void);
383 void ComputeSideForceCoefficient(
void);
384 void ComputeVerticalStrutForce(
void);
385 void ComputeGroundFrame(
void);
387 void UpdateForces(
void);
388 void SetstaticFCoeff(
double coeff);
389 void CrashDetect(
void);
390 void InitializeReporting(
void);
391 void ResetReporting(
void);
392 void ReportTakeoffOrLanding(
void);
394 void Debug(
int from);
This class implements a 3 element column vector.
virtual const FGColumnVector3 & GetBodyForces(void)
FGForce(FGFDMExec *FDMExec)
Constructor.
Represents a mathematical function.
Manages ground reactions modeling.
static constexpr double radtodeg
static constexpr double degtorad
void SetSteerAngleDeg(double angle)
BrakeGroup
Brake grouping enumerators.
bool GetGearUnitUp(void) const
int GetSteerType(void) const
ContactType
Contact point type.
void SetReport(bool flag)
Set the console touchdown reporting feature.
double GetWheelSlipAngle(void) const
double GetLocalGear(int idx) const
double GetCompLen(void) const
Gets the current compressed length of the gear in feet.
bool GetGearUnitDown(void) const
double GetBodyYForce(void)
double GetWheelRollVel(void) const
bool GetRetractable(void) const
double GetWheelSideForce(void)
double GetBodyZForce(void)
double GetstaticFCoeff(void) const
bool GetSteerable(void) const
double GetBodyXForce(void)
const FGColumnVector3 & GetLocalGear(void) const
double GetCompVel(void) const
Gets the current gear compression velocity in ft/sec.
double GetGearUnitPos(void) const
double GetSteerNorm(void) const
double GetSteerAngleDeg(void) const
FGLGear(Element *el, FGFDMExec *Executive, int number, const struct Inputs &input)
Constructor.
FrictionType
Friction types.
bool GetWOW(void) const
Gets the Weight On Wheels flag value.
ReportType
Report type enumerators.
double GetWheelSideVel(void) const
double GetWheelVel(int axis) const
double GetWheelRollForce(void)
int GetBrakeGroup(void) const
double GetBodyLocation(int idx) const
double GetCompForce(void) const
Gets the gear compression force in pounds.
FGColumnVector3 GetBodyLocation(void) const
Gets the location of the gear in Body axes.
void SetWOW(bool wow)
Sets the weight-on-wheels flag.
const std::string & GetName(void) const
Gets the name of the gear.
bool GetReport(void) const
Get the console touchdown reporting feature.
void SetSteerCmd(double cmd)
SteerType
Steering group membership enumerators.
FGLocation holds an arbitrary location in the Earth centered Earth fixed reference frame (ECEF).
Handles matrix math operations.
Base class for all surface properties.
FGSurface(FGFDMExec *fdmex, int number=-1)
Constructor.