Class TagalongSubsystemBase

java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
tagalong.subsystems.TagalongSubsystemBase
All Implemented Interfaces:
Sendable, Subsystem

Base class for all Tagalong Subsystems containing multiple microsystems
  • Field Details

    • _configuredDisable

      public boolean _configuredDisable
      True if the subsystem is disabled in the config files
    • _isSubsystemDisabled

      protected boolean _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

      public void setDisabled(boolean disable)
      Parameters:
      disable - Sets the subsystemDisabled and configuredDisable variables to disable.
    • isSubsystemDisabled

      public boolean isSubsystemDisabled()
      Returns:
      True if the subsystem is disabled
    • updateShuffleboard

      protected void updateShuffleboard()
      Updates shuffleboard
    • configShuffleboard

      protected void configShuffleboard()
      Called once on robot start to configure all shuffleboard entries.
    • onEnable

      public void 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

      public void onDisable()
      Triggers whenever the robot is disabled. Calls all the onDisable functions of the contained Tagalong Microsystems and takes any subsystem specific actions.
    • simulationInit

      public void 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

      public void 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

      public void 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

      public boolean checkInitStatus()
      Returns:
      Subsystem status -- True if subsystem is not disabled