WPILib's DoubleCircularBuffer has an upper bound on the maximum size (amount of elements) that can be in the buffer - this is desirable so that the size of the queue/buffer does not continuously grow unbounded during a particularly long loop cycle or IO read.
This replaces the old implementation that used Queue, and is better than using ArrayBlockingQueue because the oldest data is discarded when the size grows to its maximum instead of discarding the latest (newest) data.
WPILib's
DoubleCircularBuffer
has an upper bound on the maximum size (amount of elements) that can be in the buffer - this is desirable so that the size of the queue/buffer does not continuously grow unbounded during a particularly long loop cycle or IO read.This replaces the old implementation that used
Queue
, and is better than usingArrayBlockingQueue
because the oldest data is discarded when the size grows to its maximum instead of discarding the latest (newest) data.Resolves #30.