]> git.mxchange.org Git - flightgear.git/commitdiff
Added some temporary debugging msgs (now commented out.)
authorcurt <curt>
Thu, 14 Oct 1999 01:53:20 +0000 (01:53 +0000)
committercurt <curt>
Thu, 14 Oct 1999 01:53:20 +0000 (01:53 +0000)
src/Autopilot/autopilot.cxx

index 030fa9b26a149b54793923f49fd128313b3d7da7..b8d1a2b9ebf344a00adc85b5df092704027c3760 100644 (file)
@@ -1328,6 +1328,10 @@ int fgAPRun( void ) {
            // brain dead ground hugging with no look ahead
            APData->TargetClimbRate =
                ( APData->TargetAGL - fgAPget_agl() ) * 16.0;
+           // cout << "target agl = " << APData->TargetAGL 
+           //      << "  current agl = " << fgAPget_agl() 
+           //      << "  target climb rate = " << APData->TargetClimbRate 
+           //      << endl;
        } else {
            // just try to zero out rate of climb ...
            APData->TargetClimbRate = 0.0;
@@ -1355,6 +1359,8 @@ int fgAPRun( void ) {
        }
 
        error = fgAPget_climb() - APData->TargetClimbRate;
+       // cout << "climb rate = " << fgAPget_climb() 
+       //      << "  error = " << error << endl;
 
        // accumulate the error under the curve ... this really should
        // be *= delta t