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.

* Get the latest packet that has been broadcast from the master(more than one could be backed up in the Ethernet queue) */len=sizeof(struct sockaddr_in);message_len=recvfrom(socket_num, buf, bufsize,0 ,(struct sockaddr *)&remote,&len);memcpy(&host_data, buf, sizeof(host_data));if( message_len < 0 ){fprintf( stdout, "slave_get_data: error reading from socket\n" );return (G_FAILURE);}strcpy( cameraname, "PILOT" );GV_obi_set_position( ownship, &host_data.ownpos );GV_obi_set_rotation( ownship, &host_data.ownrot );GV_cam_inq_by_name( cameraname, &camera );GV_chn_set_camera( channel[1], camera );}return status;111

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

Saved successfully!

Ooh no, something went wrong!