Revision 1204
Implemented single motor testing
test_encoders.c | ||
---|---|---|
9 | 9 |
|
10 | 10 |
static char *direction_string (uint8_t direction) |
11 | 11 |
{ |
12 |
if (direction==FORWARD)
|
|
12 |
if (direction==direction_forward)
|
|
13 | 13 |
return "forward"; |
14 | 14 |
else if (direction==BACKWARD) |
15 | 15 |
return "backward"; |
... | ... | |
58 | 58 |
{ |
59 | 59 |
usb_puts("# Testing encoders" NL); |
60 | 60 |
|
61 |
test_encoders_direction (FORWARD, BACKWARD);
|
|
62 |
test_encoders_direction (BACKWARD, FORWARD);
|
|
61 |
test_encoders_direction (direction_forward, BACKWARD);
|
|
62 |
test_encoders_direction (BACKWARD, direction_forward);
|
|
63 | 63 |
|
64 | 64 |
usb_puts("# Testing encoders finished" NL); |
65 | 65 |
} |
Also available in: Unified diff