Package frc.robot.subsystems
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanAn example method querying a boolean state of the subsystem (for example, a digital sensor).edu.wpi.first.wpilibj2.command.CommandExample command factory method.voidperiodic()voidMethods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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()
-