Revision 1166
Added # to the beginning of every USB output line, as it should not be interpreted by the server.
station_hardware.c | ||
---|---|---|
2 | 2 |
|
3 | 3 |
void hardware_init () |
4 | 4 |
{ |
5 |
usb_puts ("Initializing station hardware" NL); |
|
5 |
usb_puts ("# Initializing station hardware" NL);
|
|
6 | 6 |
|
7 | 7 |
// FIXME implement |
8 | 8 |
} |
9 | 9 |
|
10 | 10 |
void rotate_to_position (uint16_t position) |
11 | 11 |
{ |
12 |
usb_puts ("Rotating to position "); |
|
12 |
usb_puts ("# Rotating to position ");
|
|
13 | 13 |
usb_puti (position); |
14 | 14 |
usb_puts (NL); |
15 | 15 |
|
16 | 16 |
// FIXME implement |
17 | 17 |
|
18 |
usb_puts ("Robot position reached"); |
|
18 |
usb_puts ("# Robot position reached");
|
|
19 | 19 |
} |
20 | 20 |
|
21 | 21 |
void set_rbom (bool on) |
22 | 22 |
{ |
23 | 23 |
if (on) |
24 | 24 |
{ |
25 |
usb_puts ("Turning RBOM light on" NL); |
|
25 |
usb_puts ("# Turning RBOM light on" NL);
|
|
26 | 26 |
// FIXME implement |
27 | 27 |
} |
28 | 28 |
else |
29 | 29 |
{ |
30 |
usb_puts ("Turning RBOM light off" NL); |
|
30 |
usb_puts ("# Turning RBOM light off" NL);
|
|
31 | 31 |
// FIXME implement |
32 | 32 |
} |
33 | 33 |
} |
34 | 34 |
|
35 | 35 |
void read_rbom (uint16_t *values) |
36 | 36 |
{ |
37 |
usb_puts ("Reading RBOM" NL); |
|
37 |
usb_puts ("# Reading RBOM" NL);
|
|
38 | 38 |
// FIXME implement |
39 | 39 |
} |
40 | 40 |
|
41 | 41 |
void set_wall_position (uint16_t position) |
42 | 42 |
{ |
43 |
usb_puts ("Moving wall to position "); |
|
43 |
usb_puts ("# Moving wall to position ");
|
|
44 | 44 |
usb_puti (position); |
45 | 45 |
usb_puts (NL); |
46 | 46 |
|
47 | 47 |
// FIXME implement |
48 | 48 |
|
49 |
usb_puts ("Wall position reached"); |
|
49 |
usb_puts ("# Wall position reached");
|
|
50 | 50 |
} |
51 | 51 |
|
52 | 52 |
void read_encoders (uint16_t *values) |
53 | 53 |
{ |
54 |
usb_puts ("Reading encoder values"); |
|
54 |
usb_puts ("# Reading encoder values");
|
|
55 | 55 |
// FIXME implement |
56 | 56 |
} |
Also available in: Unified diff