Added some temporary debugging msgs (now commented out.)
This commit is contained in:
parent
23b97f93fe
commit
e78f205b38
1 changed files with 6 additions and 0 deletions
|
@ -1328,6 +1328,10 @@ int fgAPRun( void ) {
|
||||||
// brain dead ground hugging with no look ahead
|
// brain dead ground hugging with no look ahead
|
||||||
APData->TargetClimbRate =
|
APData->TargetClimbRate =
|
||||||
( APData->TargetAGL - fgAPget_agl() ) * 16.0;
|
( APData->TargetAGL - fgAPget_agl() ) * 16.0;
|
||||||
|
// cout << "target agl = " << APData->TargetAGL
|
||||||
|
// << " current agl = " << fgAPget_agl()
|
||||||
|
// << " target climb rate = " << APData->TargetClimbRate
|
||||||
|
// << endl;
|
||||||
} else {
|
} else {
|
||||||
// just try to zero out rate of climb ...
|
// just try to zero out rate of climb ...
|
||||||
APData->TargetClimbRate = 0.0;
|
APData->TargetClimbRate = 0.0;
|
||||||
|
@ -1355,6 +1359,8 @@ int fgAPRun( void ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
error = fgAPget_climb() - APData->TargetClimbRate;
|
error = fgAPget_climb() - APData->TargetClimbRate;
|
||||||
|
// cout << "climb rate = " << fgAPget_climb()
|
||||||
|
// << " error = " << error << endl;
|
||||||
|
|
||||||
// accumulate the error under the curve ... this really should
|
// accumulate the error under the curve ... this really should
|
||||||
// be *= delta t
|
// be *= delta t
|
||||||
|
|
Loading…
Add table
Reference in a new issue