Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / diagnostic_station / common / comm_station_robot.h @ 1306

History | View | Annotate | Download (1.11 KB)

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_rangefinder 8
21
#define station_robot_read_bom         9
22
#define station_robot_read_bom_all     10
23
#define station_robot_read_eeprom      11
24

    
25
#define robot_station_group 2
26

    
27
#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
#define robot_station_data_bom_all      5
32
#define robot_station_data_eeprom       6
33
//...
34

    
35

    
36

    
37

    
38

    
39
#endif