Exemplo n.º 1
0
 /**
  * This method "juggles" and helps position the block the robot wants to pick up. It will shift
  * left and right then close its arms to straighten the block so the bottom ultrasonic sensor
  * faces directly at the block.
  */
 private void juggle() {
   lifter.halfClose();
   // Shifting left and right
   dashboard.turn(-15);
   dashboard.turn(30);
   dashboard.turn(-15);
   // Straightening the block
   lifter.closeClaw();
   lifter.openClaw();
 }