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:

wireless.h
118 118
} PacketGroupHandler;
119 119

  
120 120
/**@brief Initialize the wireless library **/
121
void wl_init(void);
121
int wl_init(void);
122 122
/**@brief Uninitialize the wireless library **/
123 123
void wl_terminate(void);
124 124
/**@brief Perform wireless library functionality **/
......
150 150
/**@brief Get the channel we are using **/
151 151
int wl_get_channel(void);
152 152
/**@brief Get the 16-bit address of the XBee module **/
153
unsigned int wl_get_xbee_id(void);
153
int wl_get_xbee_id(void);
154 154
/**@brief Set the com port on a computer, undefined on the robot.**/
155 155
void wl_set_com_port(char* port);
156 156

  

Also available in: Unified diff