40 #ifndef FGTRIMANALYSISCONTROL_H 41 #define FGTRIMANALYSISCONTROL_H 49 #include "FGFDMExec.h" 50 #include "FGJSBBase.h" 51 #include "initialization/FGInitialCondition.h" 57 #define ID_TRIMANALYSISCONTROL "$Id: FGTrimAnalysisControl.h,v 1.2 2009/10/02 10:30:09 jberndt Exp $" 59 #define DEFAULT_TRIM_ANALYSIS_TOLERANCE 0.00000001 67 class FGInitialCondition;
72 enum TaState { taAll,taUdot,taVdot,taWdot,taQdot,taPdot,taRdot,taHmgt,taNlf };
76 enum TaControl { taThrottle = 0,
77 taPitchTrim, taRollTrim, taYawTrim,
78 taElevator, taAileron, taRudder,
79 taPhi, taTheta, taHeading,
80 taGamma, taAltAGL, taBeta, taAlpha};
117 inline void SetControl(
double value ) { control_value=value; }
229 double control_value;
234 double control_initial_value;
236 double control_tolerance;
238 double state_convert;
239 double control_convert;
241 void setThrottlesPct(
void);
244 void getControl(
void);
245 void setControl(
void);
247 double computeHmgt(
void);
249 void Debug(
int from);
double GetControlStep(void)
Get control step.
void Run(void)
This function iterates through a call to the FGFDMExec::RunIC() function until the desired trimming c...
void SetControlToMax(void)
Set control value to maximum.
void SetPhiOnGround(double ff)
Set phi value on ground for trim.
double GetTolerance(void)
Get control tolerance.
TaControl GetControlType(void)
Return the control type.
void SetControlToMin(void)
Set control value to minimum.
void SetControlInitialValue(double value)
Set control initial value.
double GetControlMax(void)
Gets the control maximum value.
double GetControlMin(void)
Gets the control minimum value.
bool initTheta(void)
Calculate steady state thetas value on ground.
void SetThetaOnGround(double ff)
Set theta value on ground for trim.
~FGTrimAnalysisControl()
Destructor.
void SetControlLimits(double min, double max)
Set both control limits.
void SetStateTarget(double target)
Set target state value for trim.
Initializes the simulation run.
void SetControlStep(double value)
Set control step.
FGTrimAnalysisControl(FGFDMExec *fdmex, FGInitialCondition *IC, TaControl control)
Constructor for Trim Analysis Control class.
string GetControlName(void)
Gets the control name.
Models an aircraft control variables for purposes of trimming.
Encapsulates the JSBSim simulation executive.
double GetControlInitialValue(void)
Get control step.
void SetTolerance(double ff)
Set control tolerance.
double GetControl(void)
Gets the control value.
void SetControl(double value)
Sets the control value.
double GetStateTarget(void)
Get target state value for trim.