Class ExampleSubsystem

java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.ExampleSubsystem
All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable, edu.wpi.first.wpilibj2.command.Subsystem

public class ExampleSubsystem extends edu.wpi.first.wpilibj2.command.SubsystemBase
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new ExampleSubsystem.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    An example method querying a boolean state of the subsystem (for example, a digital sensor).
    edu.wpi.first.wpilibj2.command.Command
    Example command factory method.
    void
     
    void
     

    Methods 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, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, startEnd
  • Constructor Details

    • ExampleSubsystem

      public ExampleSubsystem()
      Creates a new ExampleSubsystem.
  • Method Details

    • exampleMethodCommand

      public edu.wpi.first.wpilibj2.command.Command exampleMethodCommand()
      Example command factory method.
      Returns:
      a command
    • exampleCondition

      public boolean exampleCondition()
      An example method querying a boolean state of the subsystem (for example, a digital sensor).
      Returns:
      value of some boolean subsystem state, such as a digital sensor.
    • periodic

      public void periodic()
    • simulationPeriodic

      public void simulationPeriodic()