1
0
Fork 0

Fix for setting initial pitch angle on the ground.

This commit is contained in:
tony 2003-07-14 11:47:25 +00:00
parent 9d318461b9
commit 16c029c609

View file

@ -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;