Matlab S-Function for control FlightGear flight with Simulink