import edu.wpi.first.wpilibj.command.Command;
public class TurnForTime extends Command {
+ Direction direction;
+ double seconds;
+ Timer timer;
public TurnForTime(double seconds, Direction direction) {
- Timer timer = new Timer();
+ this.seconds = seconds;
+ this.direction = direction;
}
@Override
protected void initialize() {
+ timer = new Timer();
+ timer.start();
}
@Override