Package frc.team670.robot.commands.drive
Class PIDDistanceDrive
java.lang.Object
edu.wpi.first.wpilibj.command.Command
frc.team670.robot.commands.drive.PIDDistanceDrive
public class PIDDistanceDrive extends Command
-
Constructor Summary
Constructors Constructor Description PIDDistanceDrive(double targetInches)
-
Method Summary
Modifier and Type Method Description void
end()
void
execute()
void
initialize()
boolean
isFinished()
Methods inherited from class edu.wpi.first.wpilibj.command.Command
cancel, doesRequire, isCanceled, isCompleted, isInterruptible, isRunning, setRunWhenDisabled, start, timeSinceInitialized, willRunWhenDisabled
-
Constructor Details
-
PIDDistanceDrive
public PIDDistanceDrive(double targetInches)- Parameters:
target
- Target distance in inches
-
-
Method Details
-
initialize
public void initialize() -
execute
public void execute() -
isFinished
public boolean isFinished() -
end
public void end()
-