Revision 1402
test incorporates motors_off
test_motors.c | ||
---|---|---|
10 | 10 |
|
11 | 11 |
//forward |
12 | 12 |
orb_set_color(RED); |
13 |
motor1_set(1, OFF); |
|
14 |
motor2_set(1, OFF); |
|
13 |
motors_off(); |
|
15 | 14 |
delay_ms(3000); |
16 | 15 |
orb_set_color(YELLOW); |
17 | 16 |
motor1_set(1, SLOW); |
... | ... | |
24 | 23 |
|
25 | 24 |
//backward |
26 | 25 |
orb_set_color(RED); |
27 |
motor1_set(0, OFF); |
|
28 |
motor2_set(0, OFF); |
|
26 |
motors_off(); |
|
29 | 27 |
delay_ms(3000); |
30 | 28 |
orb_set_color(YELLOW); |
31 | 29 |
motor1_set(0, SLOW); |
... | ... | |
38 | 36 |
|
39 | 37 |
//spin |
40 | 38 |
orb_set_color(RED); |
41 |
motor1_set(1, OFF); |
|
42 |
motor2_set(0, OFF); |
|
39 |
motors_off(); |
|
43 | 40 |
delay_ms(3000); |
44 | 41 |
orb_set_color(YELLOW); |
45 | 42 |
motor1_set(1, SLOW); |
... | ... | |
52 | 49 |
|
53 | 50 |
//spin other way |
54 | 51 |
orb_set_color(RED); |
55 |
motor1_set(0, OFF); |
|
56 |
motor2_set(1, OFF); |
|
52 |
motors_off(); |
|
57 | 53 |
delay_ms(3000); |
58 | 54 |
orb_set_color(YELLOW); |
59 | 55 |
motor1_set(0, SLOW); |
Also available in: Unified diff