Interface AStream

All Superinterfaces:
Supplier<Angle>
All Known Implementing Classes:
AStick, FilteredAStream, PollingAStream

public interface AStream extends Supplier<Angle>
  • Method Details

    • create

      static AStream create(AStream stream)
    • create

      static AStream create(IStream stream)
    • create

      static AStream create(VStream stream)
    • get

      Angle get()
      Specified by:
      get in interface Supplier<Angle>
      Returns:
      next value in the stream
    • filtered

      default FilteredAStream filtered(AFilter... filters)
      Create a new FilteredAStream from the current stream
      Parameters:
      filters - the filters you want to apply to the AStream
      Returns:
      The FilteredAStream
    • polling

      default PollingAStream polling(double dt)
      Create a new PollingAStream from the current stream
      Parameters:
      dt - the time inbetween each poll of the AStream
      Returns:
      The PollingAStream
    • add

      default AStream add(AStream other)
      Combine two AStreams by adding their results together
      Parameters:
      other - other AStream to add to this one
      Returns:
      the resulting AStream after the sum
    • sub

      default AStream sub(AStream other)
      Combine two AStreams by subtracting their results together
      Parameters:
      other - other AStream to subtract from this one
      Returns:
      the resulting AStream after the subtraction