Class ZeroMotorsWaitCommand

java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.ZeroMotorsWaitCommand
All Implemented Interfaces:
Sendable

public class ZeroMotorsWaitCommand extends Command
Zeros motors then executes normal wait command.
  • Field Details

    • m_timer

      protected Timer m_timer
  • Constructor Details

    • ZeroMotorsWaitCommand

      public ZeroMotorsWaitCommand(double seconds, Swerve swerve)
      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 class Command
    • end

      public void end(boolean interrupted)
      Overrides:
      end in class Command
    • isFinished

      public boolean isFinished()
      Overrides:
      isFinished in class Command
    • runsWhenDisabled

      public boolean runsWhenDisabled()
      Overrides:
      runsWhenDisabled in class Command