Package frc.robot.subsystems
Class ExampleSubsystem
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.ExampleSubsystem
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
An example method querying a boolean state of the subsystem (for example, a digital sensor).Example command factory method.void
periodic()
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, startRun
-
Constructor Details
-
ExampleSubsystem
public ExampleSubsystem()Creates a new ExampleSubsystem.
-
-
Method Details
-
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()
-