Class ZeroHeadingCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.alotobots.library.subsystems.vision.oculus.commands.ZeroHeadingCommand
- All Implemented Interfaces:
Sendable
Command that zeros the heading (rotation) of the Oculus system. This is useful for aligning the
robot's coordinate system with the field.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Constructor Summary
ConstructorDescriptionZeroHeadingCommand
(OculusSubsystem oculus) Creates a new ZeroHeadingCommand. -
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
-
ZeroHeadingCommand
Creates a new ZeroHeadingCommand.- Parameters:
oculus
- The Oculus subsystem to zero
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initialize
in classCommand
-
isFinished
public boolean isFinished()- Overrides:
isFinished
in classCommand
-