Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonPucheu committed Aug 28, 2023
1 parent cbd32c7 commit b5a4677
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Dozer/Dozer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,22 @@ Digit digit(49, 48, 7);
SingleServo barrier(SERVO_1, 90, 0);
SingleServo mandible(SERVO_2, 150, 60);
DoubleServo toCake(SERVO_4, SERVO_3, 90, 0, 0, 90);
SingleServo toBasket(SERVO_5, 0, 50);
SingleServo toBasket(SERVO_5, 10, 45);
SingleServo costume(SERVO_6, 0, 40);
Vacuum vacuum(SERVO_7, SingleServo(SERVO_8, 70, 0), true);
void vacuumOff() {
vacuum.off();
}
Timeout vacuumTimeout(vacuumOff, 3000, false);
Timeout vacuumTimeout(vacuumOff, 4000, false);
void vacuumSequence () {
vacuum.on();
vacuumTimeout.start();
}
Interval vacuumLoop(vacuumSequence, 5000, false);
Interval vacuumLoop(vacuumSequence, 5500, false);

#include "AutoPilot.h"

int estimation = 70;
int estimation = 60;
bool retract = true;

void setup ()
Expand Down Expand Up @@ -150,7 +150,7 @@ void loop ()
if (vacuum.toggle())
{
vacuumLoop.start();
mecanum.setMaxSpeed(70);
mecanum.setMaxSpeed(60);
mandible.servo.write(0);
}
else
Expand All @@ -175,7 +175,7 @@ void loop ()
break;
case 8:
mandible.servo.write(0);
barrier.close();
barrier.open();
toCake.openAll();
mecanum.stop();
break;
Expand Down

0 comments on commit b5a4677

Please sign in to comment.