Project

General

Profile

Revision 960

Small changes and comments.

View differences:

test.c
1
/** This test should just have the robot stay in place,
2
 * register the token ring, participate in the token ring,
3
 * and reply to packets when asked by the computer.*/
4

  
1 5
#include <dragonfly_lib.h>
2 6
#include <wireless.h>
3 7
#include <encoders.h>
4 8

  
5
#define MAP_RECEIVE_GROUP 1
6
#define MAP_REQUEST_GROUP 2
9
#define MAP_RECEIVE_GROUP 17
10
#define MAP_REQUEST_GROUP 23
7 11

  
8 12
#define POINT_RAW 1 // packet type for map data points w/ raw encoder data
9 13
#define POINT_ODO 2 // packet type for map data points w/ odometry data
......
36 40
    wl_token_ring_register();
37 41
    wl_token_ring_join();
38 42

  
39
    char *send;   // for transmission
40

  
41 43
    while(1)
42 44
    {
43 45
		wl_do();
......
65 67
		POINT_ODO, &store, 0, source, 0);
66 68
    
67 69
}
70

  
71

  

Also available in: Unified diff