#include <stdio.h>
+#include <simgear/constants.h>
+#include <simgear/debug/logstream.hxx>
+
#include "aircraft.hxx"
-#include <Debug/logstream.hxx>
-#include <Include/fg_constants.h>
// This is a record containing all the info for the aircraft currently
// being operated
// Initialize an Aircraft structure
void fgAircraftInit( void ) {
- FG_LOG( FG_AIRCRAFT, FG_INFO, "Initializing Aircraft structure" );
+ SG_LOG( SG_AIRCRAFT, SG_INFO, "Initializing Aircraft structure" );
current_aircraft.fdm_state = cur_fdm_state;
current_aircraft.controls = &controls;
f = a->fdm_state;
- FG_LOG( FG_FLIGHT, FG_DEBUG,
- "Pos = ("
- << (f->get_Longitude() * 3600.0 * RAD_TO_DEG) << ","
- << (f->get_Latitude() * 3600.0 * RAD_TO_DEG) << ","
+ SG_LOG( SG_FLIGHT, SG_DEBUG,
+ "Pos = ("
+ << (f->get_Longitude() * 3600.0 * SGD_RADIANS_TO_DEGREES) << ","
+ << (f->get_Latitude() * 3600.0 * SGD_RADIANS_TO_DEGREES) << ","
<< f->get_Altitude()
<< ") (Phi,Theta,Psi)=("
<< f->get_Phi() << ","
<< f->get_Theta() << ","
<< f->get_Psi() << ")" );
- FG_LOG( FG_FLIGHT, FG_DEBUG,
+ SG_LOG( SG_FLIGHT, SG_DEBUG,
"Kts = " << f->get_V_equiv_kts()
<< " Elev = " << controls.get_elevator()
<< " Aileron = " << controls.get_aileron()