Package tagalong.subsystems
Class TagalongSubsystemBase
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
tagalong.subsystems.TagalongSubsystemBase
Base class for all Tagalong Subsystems containing multiple microsystems
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
True if the subsystem is disabled in the config filesprotected boolean
Disablement state, for dynamic disablement configured on the fly by robot code -
Constructor Summary
ConstructorsConstructorDescriptionTagalongSubsystemBase
(Object conf) Constructs a generic subsystem with universal features -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Called once on robot to configure motors.protected void
Called once on robot start to configure all shuffleboard entries.boolean
void
Triggers whenever the robot is disabled.void
onEnable()
Triggers whenever the robot is autonomous or teleop enabled.void
setDisabled
(boolean disable) void
Called once on robot boot to initialize simulations.void
Called periodically on robot to update simulations.protected void
Updates shuffleboardMethods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, periodic, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, startEnd, startRun
-
Field Details
-
_configuredDisable
True if the subsystem is disabled in the config files -
_isSubsystemDisabled
Disablement state, for dynamic disablement configured on the fly by robot code
-
-
Constructor Details
-
TagalongSubsystemBase
Constructs a generic subsystem with universal features- Parameters:
conf
- Subsystem configuration containing all microsystem confs and any other necessary configs
-
-
Method Details
-
setDisabled
- Parameters:
disable
- Sets the subsystemDisabled and configuredDisable variables to disable.
-
isSubsystemDisabled
- Returns:
- True if the subsystem is disabled
-
updateShuffleboard
Updates shuffleboard -
configShuffleboard
Called once on robot start to configure all shuffleboard entries. -
onEnable
Triggers whenever the robot is autonomous or teleop enabled. Calls all the onEnable functions of the contained Tagalong Microsystems and takes any subsystem specific actions. -
onDisable
Triggers whenever the robot is disabled. Calls all the onDisable functions of the contained Tagalong Microsystems and takes any subsystem specific actions. -
simulationInit
Called once on robot boot to initialize simulations. Calls all the simulationInit functions of the contained Tagalong Microsystems and takes any subsystem specific actions. -
simulationPeriodic
Called periodically on robot to update simulations. Calls all the simulationInit functions of the contained Tagalong Microsystems and takes any subsystem specific actions. -
configMotor
Called once on robot to configure motors. Calls all the configMotor() functions of the contained Tagalong Microsystems and takes any subsystem specific actions. -
checkInitStatus
- Returns:
- Subsystem status -- True if subsystem is not disabled
-