root / branches / autonomous_recharging / code / projects / libwireless / robotTest / main.c @ 668
History | View | Annotate | Download (403 Bytes)
1 | 17 | bcoltin | #include <dragonfly_lib.h> |
---|---|---|---|
2 | #include <wireless.h> |
||
3 | #include <wl_token_ring.h> |
||
4 | |||
5 | 668 | bcoltin | int main(int argc, char** argv) |
6 | 17 | bcoltin | { |
7 | 213 | bcoltin | if (argc < 2) |
8 | return;
|
||
9 | int robot = atoi(argv[1]); |
||
10 | 17 | bcoltin | dragonfly_init(ALL_ON); |
11 | usb_puts("Start.\r\n");
|
||
12 | wl_init(); |
||
13 | usb_puts("Wireless initialized.\n");
|
||
14 | 213 | bcoltin | wl_send_robot_to_robot_global_packet(3, 9, NULL, 0, robot, 0); |
15 | printf("Command sent to robot %i.\n", robot);
|
||
16 | //while (1)
|
||
17 | // wl_do();
|
||
18 | 17 | bcoltin | } |