Project

General

Profile

Revision 953

Added some test code for the receive function - does not work as
I can't get the token ring to start up. receive.c needs to be on
a matlab computer to be compiled and run correctly (mex receive.c -lpthread)

View differences:

receive.c
55 55
		receive_initialized = 1;
56 56
	}
57 57
	
58
	while(1){}
58 59
	
59 60
	/*Return stuff to matlab
60 61
	//deliberately ignore nrhs.	
......
139 140
		while(wl_token_iterator_has_next()){
140 141
			robot_num = wl_token_iterator_next();
141 142
    		
142
			wl_send_robot_to_robot_global_packet(MAP_REQUEST_GROUP, 0,
143
            	NULL, 0, robot_num, 0);
143
			wl_send_robot_to_robot_global_packet(MAP_REQUEST_GROUP, 
144
				POINT_ODO, NULL, 0, robot_num, 0);
145
            	
144 146

  
145 147
		}
146 148
		

Also available in: Unified diff