51#define DEFAULT_TOLERANCE 0.001
59const std::string
StateNames[] = {
"all",
"udot",
"vdot",
"wdot",
"qdot",
"pdot",
62const std::string
ControlNames[] = {
"Throttle",
"Sideslip",
"Angle of Attack",
63 "Elevator",
"Ailerons",
"Rudder",
64 "Altitude AGL",
"Pitch Angle",
65 "Roll Angle",
"Flight Path Angle",
66 "Pitch Trim",
"Roll Trim",
"Yaw Trim",
70class FGInitialCondition;
106 double GetState(
void) { getState();
return state_value; }
108 inline void SetControl(
double value ) { control_value=value; }
138 inline int GetRunCount(
void) {
return total_stability_iterations; }
146 bool InTolerance(
void) { getState();
return (fabs(state_value) <= tolerance); }
158 double control_value;
167 double state_convert;
168 double control_convert;
172 int its_to_stable_value;
173 int total_stability_iterations;
174 int total_iterations;
176 void setThrottlesPct(
void);
179 void getControl(
void);
180 void setControl(
void);
182 double computeHmgt(
void);
184 void Debug(
int from);
FGJSBBase()
Constructor for FGJSBBase.
void SetIterationLimit(int ii)
int GetIterationLimit(void)
double GetStateTarget(void)
double GetSolverEps(void)
void SetStateTarget(double target)
double GetControlMin(void)
std::string GetStateName(void)
void SetControlToMin(void)
double GetAvgStability(void)
std::string GetControlName(void)
void SetControl(double value)
void SetControlToMax(void)
FGTrimAxis(FGFDMExec *fdmex, FGInitialCondition *IC, State state, Control control)
Constructor for Trim Axis class.
double GetControlMax(void)
void SetTolerance(double ff)
void SetSolverEps(double ff)
void SetControlLimits(double min, double max)
Control GetControlType(void)
double GetTolerance(void)
void Run(void)
This function iterates through a call to the FGFDMExec::RunIC() function until the desired trimming c...
const std::string StateNames[]
const std::string ControlNames[]
State
Models an aircraft axis for purposes of trimming.