Package frc.robot.commands
Class ZeroMotorsWaitCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.ZeroMotorsWaitCommand
- All Implemented Interfaces:
Sendable
Zeros motors then executes normal wait command.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionZeroMotorsWaitCommand
(double seconds, Swerve swerve) Zeros motors then executes normal wait command. -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, execute, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Field Details
-
m_timer
-
-
Constructor Details
-
ZeroMotorsWaitCommand
Zeros motors then executes normal wait command.- Parameters:
seconds
- how long the wait command should run
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initialize
in classCommand
-
end
public void end(boolean interrupted) -
isFinished
public boolean isFinished()- Overrides:
isFinished
in classCommand
-
runsWhenDisabled
public boolean runsWhenDisabled()- Overrides:
runsWhenDisabled
in classCommand
-