Changed motor direction in catch ball.

This commit is contained in:
Miguel Angel Astor Romero
2016-05-27 16:22:14 -04:30
parent 750d709f53
commit 1b1ab7617b
2 changed files with 4 additions and 3 deletions

View File

@@ -53,7 +53,8 @@ public class CatchBallBehavior extends BaseBehavior {
@Override
public void action() {
Motor.B.forward();
pilot.travel(65);
Motor.B.backward();
try { Thread.sleep(2000); } catch(InterruptedException e) { };
/* Turn towards the start line and start moving. */

View File

@@ -106,7 +106,7 @@ public class SearchBallBehavior extends BaseBehavior {
if(turnLeft) {
/* Search to the left of the robot. */
Rotations.rotateM90(compass, pilot);
pilot.travel(50);
pilot.travel(100);
if(queue.hasNextTouchSensorEvent()) {
/* If an obstacle is found while searching then start searching
@@ -127,7 +127,7 @@ public class SearchBallBehavior extends BaseBehavior {
} else {
/* Search to the right of the robot. */
Rotations.rotate90(compass, pilot);
pilot.travel(50);
pilot.travel(100);
if(queue.hasNextTouchSensorEvent()) {
/* If an obstacle is found while searching then give up and go back