Revision 48
I'm having some commit woes... bare with me
trunk/code/lib/include/libwireless/wl_token_ring.h | ||
---|---|---|
35 | 35 |
int wl_token_get_sensor_reading(int source, int dest); |
36 | 36 |
/**@brief Return the latest BOM reading between us and another robot **/ |
37 | 37 |
int wl_token_get_my_sensor_reading(int dest); |
38 |
/**@brief Return the number of robots in the sensor matrix.*/ |
|
39 |
int wl_token_get_num_robots(void); |
|
40 |
/**@brief Return the number of non-null elements in the sensor matrix*/ |
|
41 |
int wl_token_get_matrix_size(void); |
|
38 | 42 |
|
39 | 43 |
/** @} **/ //end token ring group |
40 | 44 |
|
trunk/code/lib/src/libwireless/wl_token_ring.c | ||
---|---|---|
718 | 718 |
queue_add(interrupting, (void*)robot); |
719 | 719 |
} |
720 | 720 |
|
721 |
int wl_token_get_num_robots(void){ |
|
722 |
return sensor_matrix_get_joined(sensorMatrix); |
|
723 |
} |
|
724 |
|
|
725 |
int wl_token_get_matrix_size(void){ |
|
726 |
return sensor_matrix_get_size(sensorMatrix); |
|
727 |
} |
trunk/code/projects/libwireless/lib/wl_token_ring.c | ||
---|---|---|
718 | 718 |
queue_add(interrupting, (void*)robot); |
719 | 719 |
} |
720 | 720 |
|
721 |
int wl_token_get_num_robots(void){ |
|
722 |
return sensor_matrix_get_joined(sensorMatrix); |
|
723 |
} |
|
724 |
|
|
725 |
int wl_token_get_matrix_size(void){ |
|
726 |
return sensor_matrix_get_size(sensorMatrix); |
|
727 |
} |
trunk/code/projects/libwireless/lib/wl_token_ring.h | ||
---|---|---|
35 | 35 |
int wl_token_get_sensor_reading(int source, int dest); |
36 | 36 |
/**@brief Return the latest BOM reading between us and another robot **/ |
37 | 37 |
int wl_token_get_my_sensor_reading(int dest); |
38 |
/**@brief Return the number of robots in the sensor matrix.*/ |
|
39 |
int wl_token_get_num_robots(void); |
|
40 |
/**@brief Return the number of non-null elements in the sensor matrix*/ |
|
41 |
int wl_token_get_matrix_size(void); |
|
38 | 42 |
|
39 | 43 |
/** @} **/ //end token ring group |
40 | 44 |
|
Also available in: Unified diff