Class SetRobotHeadingCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
xbot.common.command.BaseCommand
xbot.common.subsystems.pose.commands.SetRobotHeadingCommand
- All Implemented Interfaces:
Sendable
,IPropertySupport
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Field Summary
FieldsFields inherited from class xbot.common.command.BaseCommand
aKitLog, log, monitor, runningAlert
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
void
boolean
boolean
void
setHeadingToApply
(double heading) void
setHeadingToApply
(DoubleSupplier headingSupplier) Methods inherited from class xbot.common.command.BaseCommand
end, getPrefix, includeOnSmartDashboard, includeOnSmartDashboard, requires, setRunsWhenDisabled
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, 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
-
poseSubsystem
-
-
Constructor Details
-
SetRobotHeadingCommand
-
-
Method Details
-
runsWhenDisabled
public boolean runsWhenDisabled()- Overrides:
runsWhenDisabled
in classBaseCommand
-
setHeadingToApply
public void setHeadingToApply(double heading) -
setHeadingToApply
-
initialize
public void initialize()- Overrides:
initialize
in classBaseCommand
-
execute
public void execute() -
isFinished
public boolean isFinished()- Overrides:
isFinished
in classCommand
-