Package frc.spectrumLib
Class CachedDouble
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.spectrumLib.CachedDouble
- All Implemented Interfaces:
Sendable,Subsystem,DoubleSupplier
Caches a DoubleSupplier value so it is computed at most once per scheduler iteration. Note:
Subsystem periodic() is typically called after triggers are polled each iteration.
-
Constructor Summary
Constructors -
Method Summary
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, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
CachedDouble
-
-
Method Details
-
periodic
public void periodic() -
getAsDouble
public double getAsDouble()- Specified by:
getAsDoublein interfaceDoubleSupplier
-