コード例 #1
0
  public DriveForwardForTime(double numberOfSeconds, double speed) {

    requires(Chassis.getInstance());
    this.numberOfSeconds = numberOfSeconds;
    timer = new Timer();
    timer.stop();
    this.speed = speed;
  }
コード例 #2
0
 protected void end() {
   Chassis.getInstance().driveStraightAtSpeed(0);
 }
コード例 #3
0
 protected void execute() {
   Chassis.getInstance().driveStraightAtSpeed(speed);
 }