Project

General

Profile

Statistics
| Revision:

root / branches / slam / code / projects / colonet / DataRequests / server / data_requests.h @ 157

History | View | Annotate | Download (529 Bytes)

1
#define DATA_REQUEST_GROUP 23
2
#define BOM_TYPE 0
3
#define IR_TYPE 1
4
#define ENCODER_TYPE 2
5

    
6
typedef struct {
7
  short int robot_id;
8
  char value;
9
  struct BomNode* next;
10
} BomNode;
11

    
12
void data_requests_init(
13
                        void(*bom_data_handler)(BomNode* head),
14
                        void(*IR_data_handler)(unsigned char* data),
15
                        void(*encoder_data_handler)(unsigned char* data));
16

    
17
void request_bom_data(int robot_id);
18
void request_IR_data(int robot_id);
19
void request_encoder_data(int robot_id);
20