import edu.wpi.first.wpilibj.command.Command;
/***
- * This command will move the robot at the specified speed for the specified
- * distance.
+ * This command will drive the drivetrain a certain distance in inches
*
- * post-condition: has driven for the distance and speed specified
- *
- * @author Meryem and Avi
+ * @param distance
+ * is the distance we want to drive
+ * maxTimeOut is a catch just in case the robot malfunctions and never
+ * gets to the setpoint
*
+ * @code
+ * Repeatedly updates the driveTrain setpoint
+ * Finishes when the time goes over maxTimeOut or the driveTrain hits the
+ * setpoint
+ * end() disables the PID driveTrain
*/
public class DriveDistance extends Command {
private double maxTimeOut;
@Override
protected void interrupted() {
- end();
}
}