Revision 1288
Fixed messages (all messages which are not commands need to have a # in front)
trunk/code/projects/diagnostic_station/station/hardware_wall.c | ||
---|---|---|
24 | 24 |
// Enable limit switch as input |
25 | 25 |
DDRF &= ~_BV(DDF0); |
26 | 26 |
|
27 |
usb_puts("Moving back...\r\n");
|
|
27 |
usb_puts("# Wall moving back...\r\n");
|
|
28 | 28 |
delay_ms(1000); |
29 | 29 |
// Move wall back until the switch is triggered |
30 | 30 |
motor2_set(FORWARD, 255); |
... | ... | |
32 | 32 |
motor2_set(FORWARD, 0); |
33 | 33 |
|
34 | 34 |
delay_ms(1000); |
35 |
usb_puts("Moving forward...\r\n");
|
|
35 |
usb_puts("# Wall moving forward...\r\n");
|
|
36 | 36 |
|
37 | 37 |
// Move wall forward slowly until the switch is untriggered |
38 | 38 |
motor2_set(BACKWARD, 255); |
39 | 39 |
while (PINF & _BV(PINF0)); |
40 | 40 |
motor2_set(FORWARD, 0); |
41 | 41 |
|
42 |
usb_puts("Done with wall init\r\n"); |
|
42 |
usb_puts("# Done with wall init\r\n");
|
|
43 | 43 |
|
44 | 44 |
wall_position = 0; |
45 | 45 |
} |
Also available in: Unified diff