Compare commits

..

1 commit

Author SHA1 Message Date
Yohan Simard
c8ea3f3a91 clean project 2020-11-16 19:45:46 +01:00

View file

@ -34,7 +34,7 @@ void Orientation_background()
// On ne demarre le moteur que si la vitesse depasse un certain seuil // On ne demarre le moteur que si la vitesse depasse un certain seuil
if (fabs(speed) > THRESHOLD) if (fabs(speed) > THRESHOLD)
DCMotor_setSpeed(DCMOTOR_TIMER, DCMOTOR_CHANNEL, DCMOTOR_GPIO, DCMOTOR_PIN, speed); DCMotor_setSpeed(DCMOTOR_TIMER, DCMOTOR_CHANNEL, DCMOTOR_GPIO, DCMOTOR_PIN_DIRECTION, speed);
else else
DCMotor_setSpeed(DCMOTOR_TIMER, DCMOTOR_CHANNEL, DCMOTOR_GPIO, DCMOTOR_PIN, 0); DCMotor_setSpeed(DCMOTOR_TIMER, DCMOTOR_CHANNEL, DCMOTOR_GPIO, DCMOTOR_PIN_DIRECTION, 0);
} }