root / branches / autonomous_recharging / code / projects / libwireless / test / test.c @ 213
History | View | Annotate | Download (458 Bytes)
1 |
#include "stdlib.h" |
---|---|
2 |
#include "stdio.h" |
3 |
|
4 |
#include "../lib/wireless.h" |
5 |
#include "../lib/wl_error_group.h" |
6 |
#include "../lib/wl_token_ring.h" |
7 |
//#include "../lib/xbee.h"
|
8 |
|
9 |
#include <time.h> |
10 |
|
11 |
int main(int argc, char** argv) |
12 |
{ |
13 |
int robot = atoi(argv[1]); |
14 |
wl_init(); |
15 |
wl_set_channel(0xA);
|
16 |
printf("Wireless initialized.\n");
|
17 |
printf("Packet groups initialized.\n");
|
18 |
|
19 |
wl_send_robot_to_robot_global_packet(3, 9, NULL, 0, robot, 0); |
20 |
|
21 |
wl_terminate(); |
22 |
|
23 |
return 0; |
24 |
} |
25 |
|