Class PeriodicSubsystem
java.lang.Object
com.stuypulse.robot.util.PeriodicSubsystem
- All Implemented Interfaces:
org.wpilib.command3.Mechanism
A standard subsystem that includes an extra periodic callback which runs after the command
scheduler. Allows outputs to be published after all other periodic code has finished.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final List<PeriodicSubsystem> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name of this mechanism.protected abstract voidperiodic()This method is called periodically beforeScheduler.run(), and should be overriden for processing inputs.protected voidThis method is called periodically afterScheduler.run(), and should be overriden for applying outputs.static voidRun theperiodicAfterScheduler()methods for all subsystems.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wpilib.command3.Mechanism
controllableDuringDisabled, getDefaultCommand, getRegisteredScheduler, getRunningCommands, idle, idleFor, run, runRepeatedly, setDefaultCommand
-
Field Details
-
subsystemInstances
-
name
-
-
Constructor Details
-
PeriodicSubsystem
protected PeriodicSubsystem() -
PeriodicSubsystem
-
-
Method Details
-
getName
-
toString
-
periodicAfterScheduler
This method is called periodically afterScheduler.run(), and should be overriden for applying outputs. -
periodic
This method is called periodically beforeScheduler.run(), and should be overriden for processing inputs. -
runAllPeriodicAfterScheduler
Run theperiodicAfterScheduler()methods for all subsystems.
-