root / trunk / code / projects / diagnostic_station / common / comm_station_robot.h @ 1370
History | View | Annotate | Download (1.11 KB)
1 | 1159 | deffi | #ifndef _comm_station_robot_h
|
---|---|---|---|
2 | #define _comm_station_robot_h
|
||
3 | |||
4 | 1164 | deffi | // 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 | 1159 | deffi | |
9 | 1164 | deffi | // The message group station -> robot (0..15)
|
10 | 1159 | deffi | #define station_robot_group 1 |
11 | |||
12 | 1164 | deffi | // 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 | 1167 | emullini | #define station_robot_read_encoders 6 |
19 | 1219 | deffi | #define station_robot_reset_encoders 7 |
20 | 1263 | deffi | #define station_robot_read_rangefinder 8 |
21 | #define station_robot_read_bom 9 |
||
22 | 1274 | emullini | #define station_robot_read_bom_all 10 |
23 | 1303 | abuchan | #define station_robot_read_eeprom 11 |
24 | 1159 | deffi | |
25 | 1164 | deffi | #define robot_station_group 2 |
26 | 1159 | deffi | |
27 | 1263 | deffi | #define robot_station_done 1 |
28 | #define robot_station_data_encoders 2 |
||
29 | #define robot_station_data_rangefinder 3 |
||
30 | #define robot_station_data_bom 4 |
||
31 | 1274 | emullini | #define robot_station_data_bom_all 5 |
32 | 1303 | abuchan | #define robot_station_data_eeprom 6 |
33 | 1164 | deffi | //...
|
34 | 1159 | deffi | |
35 | |||
36 | |||
37 | |||
38 | 1164 | deffi | |
39 | 1159 | deffi | #endif |