Package xbot.common.command
Class BaseSimpleSetpointSubsystem
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
xbot.common.command.BaseSubsystem
xbot.common.command.BaseSetpointSubsystem<Double,Double>
xbot.common.command.BaseSimpleSetpointSubsystem
- All Implemented Interfaces:
Sendable,Subsystem,DataFrameRefreshable,SupportsSetpointLock,IPropertySupport
- Direct Known Subclasses:
SwerveDriveSubsystem,SwerveSteeringSubsystem
A base class for setpoint subsystems that use simple Double values for both
current and target values.
-
Field Summary
Fields inherited from class xbot.common.command.BaseSetpointSubsystem
atGoal, lastTargetValueUsedforAtGoalFields inherited from class xbot.common.command.BaseSubsystem
aKitLog, dataFrameRefreshables, log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanareTwoTargetsEquivalent(Double target1, Double target2) Methods inherited from class xbot.common.command.BaseSetpointSubsystem
areTwoDoublesEquivalent, areTwoDoublesEquivalent, createSetTargetCommand, createSetTargetCommand, getCurrentValue, getSetpointLock, getTargetValue, isCalibrated, isMaintainerAtGoal, setMaintainerIsAtGoal, setPower, setTargetValueMethods inherited from class xbot.common.command.BaseSubsystem
getPrefix, periodic, refreshDataFrame, registerDataFrameRefreshableMethods 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
-
Constructor Details
-
BaseSimpleSetpointSubsystem
public BaseSimpleSetpointSubsystem()
-
-
Method Details
-
areTwoTargetsEquivalent
- Specified by:
areTwoTargetsEquivalentin classBaseSetpointSubsystem<Double,Double>
-