Fix for setting initial pitch angle on the ground.
This commit is contained in:
parent
9d318461b9
commit
16c029c609
1 changed files with 3 additions and 1 deletions
|
@ -245,8 +245,9 @@ bool FGTrim::DoTrim(void) {
|
|||
//cout << current_axis << " " << TrimAxes[current_axis]->GetStateName()
|
||||
//<< " " << TrimAxes[current_axis]->GetControlName()<< endl;
|
||||
if(TrimAxes[current_axis]->GetStateType() == tQdot) {
|
||||
if(mode == tGround)
|
||||
if(mode == tGround) {
|
||||
TrimAxes[current_axis]->initTheta();
|
||||
}
|
||||
}
|
||||
xlo=TrimAxes[current_axis]->GetControlMin();
|
||||
xhi=TrimAxes[current_axis]->GetControlMax();
|
||||
|
@ -616,6 +617,7 @@ void FGTrim::setDebug(void) {
|
|||
|
||||
void FGTrim::SetMode(TrimMode tt) {
|
||||
ClearStates();
|
||||
mode=tt;
|
||||
switch(tt) {
|
||||
case tFull:
|
||||
cout << " Full Trim" << endl;
|
||||
|
|
Loading…
Reference in a new issue