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
FieldsModifier and TypeFieldDescriptionprotected final AKitLoggerprotected final List<DataFrameRefreshable>protected final org.apache.logging.log4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidperiodic()This method is called on eachCommandSchedulerloop.voidConsumes and processes inputs from the device or subsystem.protected voidregisterDataFrameRefreshable(DataFrameRefreshable refreshable) Methods 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, 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:
getPrefixin interfaceIPropertySupport
-
registerDataFrameRefreshable
-
periodic
public void periodic()This method is called on eachCommandSchedulerloop. -
refreshDataFrame
public void refreshDataFrame()Description copied from interface:DataFrameRefreshableConsumes and processes inputs from the device or subsystem.- Specified by:
refreshDataFramein interfaceDataFrameRefreshable
-