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(Fmotor, pullSpeed);
|
||||||
set_speed(Bmotor, pushSpeed);
|
set_speed(Bmotor, pushSpeed);
|
||||||
Frunning = true;
|
Frunning = true;
|
||||||
clockwise(Fmotor);
|
counter_clockwise(Fmotor);
|
||||||
clockwise(Bmotor);
|
counter_clockwise(Bmotor);
|
||||||
}
|
}
|
||||||
|
|
||||||
void backward (int source) {
|
void backward (int source) {
|
||||||
|
@ -157,8 +157,8 @@ void backward (int source) {
|
||||||
set_speed(Bmotor, pullSpeed);
|
set_speed(Bmotor, pullSpeed);
|
||||||
set_speed(Fmotor, pushSpeed);
|
set_speed(Fmotor, pushSpeed);
|
||||||
Brunning = true;
|
Brunning = true;
|
||||||
counter_clockwise(Bmotor);
|
clockwise(Bmotor);
|
||||||
counter_clockwise(Fmotor);
|
clockwise(Fmotor);
|
||||||
}
|
}
|
||||||
|
|
||||||
void monitor () {
|
void monitor () {
|
||||||
|
|
Loading…
Reference in New Issue