Project

General

Profile

Revision 336

Updated wireless to use a circular buffer instead of a queue using malloc. Tested on both the computer and robots with a token ring, and was successful.

View differences:

sensor_matrix.c
99 99
 * @param m the sensor matrix
100 100
 * @param id the XBee ID of the robot to add
101 101
 **/
102
void sensor_matrix_add_robot(SensorMatrix* m, unsigned int id)
102
void sensor_matrix_add_robot(SensorMatrix* m, int id)
103 103
{
104 104
	int i;
105 105
	if (id >= m->size)
......
126 126
 * @param m the sensor matrix
127 127
 * @param id the XBee ID of the robot to remove
128 128
 **/
129
void sensor_matrix_remove_robot(SensorMatrix* m, unsigned int id)
129
void sensor_matrix_remove_robot(SensorMatrix* m, int id)
130 130
{
131 131
	int i;
132 132

  

Also available in: Unified diff