Class PollingAStream

java.lang.Object
com.stuypulse.stuylib.streams.angles.PollingAStream
All Implemented Interfaces:
AStream, AutoCloseable, Supplier<Angle>

public class PollingAStream extends Object implements AStream, AutoCloseable
A PollingAStream calls AStream.get() every x milliseconds instead of when the user calls get
  • Constructor Details

    • PollingAStream

      public PollingAStream(AStream stream, double dt)
      Creates a PollingAStream from an AStream and a time value
      Parameters:
      stream - astream to poll from
      dt - Number of calls per second
  • Method Details