Developement Of An Instrument Landing Simulation ... - Cal Poly
Developement Of An Instrument Landing Simulation ... - Cal Poly
Developement Of An Instrument Landing Simulation ... - Cal Poly
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
struct sockaddr_in you; // the outgoing socket structSOCKET server_socket = 0;SOCKET client_socket = 0;int message_len = 0;// socket descriptor for the server socket// socket descriptor for the client socket// length of the received messagestruct Host_data host_data;float x=1, y=2, z=3, psi=4, theta=5, phi=6;char buf[BUFFER_SIZE];// buffer for receiving from remoteint len=0;/* Function: mdlInitializeSizes =====================================* Abstract:* Setup sizes of the various vectors.*/static void mdlInitializeSizes(SimStruct *S){ssSetNumSFcnParams(S, 0);if (ssGetNumSFcnParams(S) != ssGetSFcnParamsCount(S)) {return; /* Parameter mismatch will be reported by Simulink */}if (!ssSetNumInputPorts(S, 1)) return;ssSetInputPortWidth(S, 0, 6);//x,y,z,psi,theta,phissSetInputPortDirectFeedThrough(S, 0, 1);96