19 #ifndef JSBSim_FGTrimmer_H 20 #define JSBSim_FGTrimmer_H 22 #include "math/FGNelderMead.h" 23 #include "FGFDMExec.h" 24 #include "models/FGInertial.h" 35 velocity(100), altitude(1000), gamma(0),
36 rollRate(0), pitchRate(0), yawRate(0),
37 coordinatedTurn(
true), stabAxisRoll(
true)
40 double velocity, altitude, gamma;
41 double rollRate, pitchRate, yawRate;
42 bool coordinatedTurn, stabAxisRoll;
46 std::vector<double> constrain(
const std::vector<double> & v);
47 void printSolution(std::ostream & stream,
const std::vector<double> & v);
48 void printState(std::ostream & stream);
49 double compute_cost();
50 double eval(
const std::vector<double> & v);
51 static void limit(
double min,
double max,
double &val)
54 else if (val>max) val=max;
56 void setFdm(
FGFDMExec * fdm) {m_fdm = fdm; }
Encapsulates the JSBSim simulation executive.