root / trunk / code / projects / diagnostic_station / common / comm_station_robot.h @ 1159
History | View | Annotate | Download (601 Bytes)
1 |
#ifndef _comm_station_robot_h
|
---|---|
2 |
#define _comm_station_robot_h
|
3 |
|
4 |
// TODO: define a channel and a PAN (and use it on both the robot and the station)
|
5 |
|
6 |
// The message group (0..15)
|
7 |
#define station_robot_group 1 |
8 |
|
9 |
// The message types
|
10 |
#define station_robot_set_orbs 1 |
11 |
#define station_robot_set_motors 2 |
12 |
#define station_robot_set_bom 3 |
13 |
// TODO: add motors off (and use everywhere)
|
14 |
// TODO: add motors_for_some_time (and use in test_encoders)
|
15 |
|
16 |
#define WORD_BYTE_0(word) ( word &0xFF) |
17 |
#define WORD_BYTE_1(word) ((word>>8)&0xFF) |
18 |
#define WORD(byte0, byte1) (byte1<<8 | byte0) |
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
#endif
|