Class CachedDouble

All Implemented Interfaces:
Sendable, Subsystem, DoubleSupplier

public class CachedDouble extends SubsystemBase implements DoubleSupplier
Caches a DoubleSupplier so its value is computed at most once per scheduler iteration. SubsystemBase registers the instance with the scheduler on construction, and that is what calls periodic() to clear the cache.
  • Constructor Details

  • Method Details