Package xbot.common.command
Class BaseSubsystem
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
xbot.common.command.BaseSubsystem
- All Implemented Interfaces:
Sendable
,Subsystem
,DataFrameRefreshable
,IPropertySupport
- Direct Known Subclasses:
AutonomousCommandSelector
,BaseDriveSubsystem
,BasePoseSubsystem
,BaseSetpointSubsystem
,CompressorSubsystem
,SimpleMotorSubsystem
,SwerveModuleSubsystem
public abstract class BaseSubsystem
extends SubsystemBase
implements IPropertySupport, DataFrameRefreshable
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AKitLogger
protected final List<DataFrameRefreshable>
protected final org.apache.logging.log4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
periodic()
This method is called on eachCommandScheduler
loop.void
Consumes and processes inputs from the device or subsystem.protected void
registerDataFrameRefreshable
(DataFrameRefreshable refreshable) 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, simulationPeriodic, startEnd, startRun
-
Field Details
-
log
protected final org.apache.logging.log4j.Logger log -
aKitLog
-
dataFrameRefreshables
-
-
Constructor Details
-
BaseSubsystem
public BaseSubsystem()
-
-
Method Details
-
getPrefix
- Specified by:
getPrefix
in interfaceIPropertySupport
-
registerDataFrameRefreshable
-
periodic
public void periodic()This method is called on eachCommandScheduler
loop. -
refreshDataFrame
public void refreshDataFrame()Description copied from interface:DataFrameRefreshable
Consumes and processes inputs from the device or subsystem.- Specified by:
refreshDataFrame
in interfaceDataFrameRefreshable
-