Class PingCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.alotobots.library.subsystems.vision.oculus.commands.PingCommand
- All Implemented Interfaces:
Sendable
Command that sends a ping to the Oculus system and waits for a response. Used to verify
communication with the Oculus headset.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Constructor Summary
-
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, end, execute, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
PingCommand
Creates a new PingCommand.- Parameters:
oculus
- The Oculus subsystem to ping
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initialize
in classCommand
-
isFinished
public boolean isFinished()- Overrides:
isFinished
in classCommand
-