Maintenance: Yasim
unused static const char* warning. Eliminate the variable since it is the only one defined.
This commit is contained in:
parent
20c386a2f4
commit
dd60a041b1
3 changed files with 5 additions and 5 deletions
|
@ -901,7 +901,7 @@ void Airplane::solveAirplane(bool verbose)
|
|||
_failureMsg = 0;
|
||||
|
||||
if (_approachElevator == nullptr) {
|
||||
setElevatorControl(DEF_PROP_ELEVATOR_TRIM);
|
||||
setElevatorControl("/controls/flight/elevator-trim");
|
||||
}
|
||||
|
||||
if (_tailIncidence == nullptr) {
|
||||
|
@ -910,6 +910,7 @@ void Airplane::solveAirplane(bool verbose)
|
|||
_tailIncidence = new ControlSetting;
|
||||
_tailIncidenceCopy = new ControlSetting;
|
||||
}
|
||||
|
||||
if (verbose) {
|
||||
fprintf(stdout,"i\tdAoa\tdTail\tcl0\tcp1\n");
|
||||
}
|
||||
|
|
|
@ -38,7 +38,6 @@ namespace yasim {
|
|||
|
||||
static const float INCIDENCE_MIN = -20*DEG2RAD;
|
||||
static const float INCIDENCE_MAX = 20*DEG2RAD;
|
||||
static const char* DEF_PROP_ELEVATOR_TRIM = "/controls/flight/elevator-trim";
|
||||
}; //namespace yasim
|
||||
|
||||
#endif // ifndef _YASIM_COMMON_HPP
|
||||
|
|
|
@ -211,7 +211,7 @@ void yasim_show_best_speed_at_heights(Airplane* a, Airplane::Configuration cfgID
|
|||
|
||||
void findMinSpeed(Airplane* a, float alt)
|
||||
{
|
||||
a->addControlSetting(Airplane::CRUISE, DEF_PROP_ELEVATOR_TRIM, 0.7f);
|
||||
a->addControlSetting(Airplane::CRUISE, "/controls/flight/elevator-trim", 0.7f);
|
||||
_setup(a, Airplane::CRUISE, alt);
|
||||
float acc[3];
|
||||
|
||||
|
|
Loading…
Reference in a new issue