Finalized flight.c example. Good enough :)