root / trunk / code / projects / diagnostic_station / common / comm_station_robot.h @ 1259
History | View | Annotate | Download (866 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 |
#define station_robot_reset_encoders 7 |
20 |
#define station_robot_read_rangefinders 8 |
21 |
#define station_robot_read_bom 9 |
22 |
|
23 |
#define robot_station_group 2 |
24 |
|
25 |
#define robot_station_done 1 |
26 |
#define robot_station_data_encoders 2 |
27 |
//...
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
#endif
|