Simulated Flight Testing of an Autonomous Unmanned Aerial Vehicle Using FlightGear