12.07.2015 Views

Developement Of An Instrument Landing Simulation ... - Cal Poly

Developement Of An Instrument Landing Simulation ... - Cal Poly

Developement Of An Instrument Landing Simulation ... - Cal Poly

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}/********************************************************************* slave_init --* Initialize the communications interface -- called once* by the slave to establish communications with the host********************************************************************/int slave_init( void ){int status = G_SUCCESS;static char * sktNameServer = "slave" ;static char * sktHostPeer = NULL ; /* anybody */GV_Obi cursor;GV_Scene scene;int temp;float x=-1, y=-2, z=-3, psi=-4, theta=-5, phi=-6;WSADATA info;if(WSAStartup(MAKEWORD(1,1), &info)==SOCKET_ERROR){fprintf( stdout, "slave_get_data: error reading from socket\n" );return (G_FAILURE);}107

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!