#include <Include/general.hxx>
#include <Cockpit/cockpit.hxx>
#include <FDM/flight.hxx>
+#include <FDM/UIUCModel/uiuc_aircraftdir.h>
#ifdef FG_NETWORK_OLK
# include <NetworkOLK/network.h>
#endif
#endif
}
+
// Defined the shared options class here
fgOPTIONS current_options;
network_olk(false)
{
+ aircraft_dir=""; // Initialize the Aircraft directory to "" (UIUC)
+
// set initial values/defaults
time_offset_type=FG_TIME_SYS_OFFSET;
char* envp = ::getenv( "FG_ROOT" );
flight_model = parse_fdm( arg.substr(6) );
} else if ( arg.find( "--aircraft=" ) != string::npos ) {
aircraft = arg.substr(11);
+ } else if ( arg.find( "--aircraft-dir=" ) != string::npos ) {
+ aircraft_dir = arg.substr(15); // (UIUC)
} else if ( arg.find( "--model-hz=" ) != string::npos ) {
model_hz = atoi( arg.substr(11) );
} else if ( arg.find( "--speed=" ) != string::npos ) {
<< endl;
cout << "\t--speed=n: run the FDM this much faster than real time" << endl;
cout << endl;
+ //(UIUC)
+ cout <<"Aircraft model directory" << endl;
+ cout <<"\t--aircraft-dir=<path> path is relative to the path of the executable" << endl;
+ cout << endl;
cout << "Initial Position and Orientation:" << endl;
cout << "\t--airport-id=ABCD: specify starting postion by airport id"