root / trunk / code / projects / diagnostic_station / common / comm_station_robot.h @ 1198
History | View | Annotate | Download (745 Bytes)
1 |
#ifndef _comm_station_robot_h
|
---|---|
2 |
#define _comm_station_robot_h
|
3 |
|
4 |
// Macros for multibyte variables
|
5 |
#define WORD_BYTE_0(word) ( word &0xFF) |
6 |
#define WORD_BYTE_1(word) ((word>>8)&0xFF) |
7 |
#define WORD(byte0, byte1) (byte1<<8 | byte0) |
8 |
|
9 |
// The message group station -> robot (0..15)
|
10 |
#define station_robot_group 1 |
11 |
|
12 |
// The message types station -> robot
|
13 |
#define station_robot_set_orbs 1 |
14 |
#define station_robot_set_motors 2 |
15 |
#define station_robot_set_bom 3 |
16 |
#define station_robot_set_motors_off 4 |
17 |
#define station_robot_set_motors_time 5 |
18 |
#define station_robot_read_encoders 6 |
19 |
|
20 |
#define robot_station_group 2 |
21 |
|
22 |
#define robot_station_finished 1 |
23 |
#define robot_station_data_encoders 2 |
24 |
//...
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
#endif
|