Compare commits
1 commit
c8ea3f3a91
...
f7406c3301
Author | SHA1 | Date | |
---|---|---|---|
|
f7406c3301 |
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ void Orientation_background()
|
|||
|
||||
// On ne demarre le moteur que si la vitesse depasse un certain seuil
|
||||
if (fabs(speed) > THRESHOLD)
|
||||
DCMotor_setSpeed(DCMOTOR_TIMER, DCMOTOR_CHANNEL, DCMOTOR_GPIO, DCMOTOR_PIN_DIRECTION, speed);
|
||||
DCMotor_setSpeed(DCMOTOR_TIMER, DCMOTOR_CHANNEL, DCMOTOR_GPIO, DCMOTOR_PIN, speed);
|
||||
else
|
||||
DCMotor_setSpeed(DCMOTOR_TIMER, DCMOTOR_CHANNEL, DCMOTOR_GPIO, DCMOTOR_PIN_DIRECTION, 0);
|
||||
DCMotor_setSpeed(DCMOTOR_TIMER, DCMOTOR_CHANNEL, DCMOTOR_GPIO, DCMOTOR_PIN, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue