Project

General

Profile

Statistics
| Revision:

root / branches / autonomous_recharging / code / projects / libwireless / robotTest / main.c @ 668

History | View | Annotate | Download (403 Bytes)

1
#include <dragonfly_lib.h>
2
#include <wireless.h>
3
#include <wl_token_ring.h>
4

    
5
int main(int argc, char** argv)
6
{
7
        if (argc < 2)
8
                return;
9
        int robot = atoi(argv[1]);
10
        dragonfly_init(ALL_ON);
11
        usb_puts("Start.\r\n");
12
        wl_init();
13
        usb_puts("Wireless initialized.\n");
14
        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
}