- fgPrintf( FG_FLIGHT, FG_DEBUG,
- "Pos = (%.2f,%.2f,%.2f) (Phi,Theta,Psi)=(%.2f,%.2f,%.2f)\n",
- FG_Longitude * 3600.0 * RAD_TO_DEG,
- FG_Latitude * 3600.0 * RAD_TO_DEG,
- FG_Altitude, FG_Phi, FG_Theta, FG_Psi);
-
- double elevator = controls.get_elevator();
- double aileron = controls.get_aileron();
- double rudder = controls.get_rudder();
- double throttle = controls.get_throttle( 0 );
-
- fgPrintf( FG_FLIGHT, FG_DEBUG,
- "Kts = %.0f Elev = %.2f, Aileron = %.2f, Rudder = %.2f Power = %.2f\n",
- FG_V_equiv_kts, elevator, aileron,rudder, throttle );
+ FG_LOG( FG_FLIGHT, FG_DEBUG,
+ "Pos = ("
+ << (FG_Longitude * 3600.0 * RAD_TO_DEG) << ","
+ << (FG_Latitude * 3600.0 * RAD_TO_DEG) << ","
+ << FG_Altitude
+ << ") (Phi,Theta,Psi)=("
+ << FG_Phi << "," << FG_Theta << "," << FG_Psi << ")" );
+
+ FG_LOG( FG_FLIGHT, FG_DEBUG,
+ "Kts = " << FG_V_equiv_kts
+ << " Elev = " << controls.get_elevator()
+ << " Aileron = " << controls.get_aileron()
+ << " Rudder = " << controls.get_rudder()
+ << " Power = " << controls.get_throttle( 0 ) );