Reverse motor logic
This commit is contained in:
parent
724da68b0e
commit
dae438443f
|
@ -142,8 +142,8 @@ void forward (int source) {
|
|||
set_speed(Fmotor, pullSpeed);
|
||||
set_speed(Bmotor, pushSpeed);
|
||||
Frunning = true;
|
||||
clockwise(Fmotor);
|
||||
clockwise(Bmotor);
|
||||
counter_clockwise(Fmotor);
|
||||
counter_clockwise(Bmotor);
|
||||
}
|
||||
|
||||
void backward (int source) {
|
||||
|
@ -157,8 +157,8 @@ void backward (int source) {
|
|||
set_speed(Bmotor, pullSpeed);
|
||||
set_speed(Fmotor, pushSpeed);
|
||||
Brunning = true;
|
||||
counter_clockwise(Bmotor);
|
||||
counter_clockwise(Fmotor);
|
||||
clockwise(Bmotor);
|
||||
clockwise(Fmotor);
|
||||
}
|
||||
|
||||
void monitor () {
|
||||
|
|
Loading…
Reference in New Issue