Bug in Compress state in WPI library

I think I found an issue with this VI. Another thread peaked my interest in the compressor functions, and browsing through them, I found that this functional global seems to support multiple compressors at first sight.

…\vi.lib\Rock Robotics\WPI\Compressor\WPI_Compressor Global.vi

Unfortunately, this VI seems to overwrite the “compressor state out” with potentially the wrong data. It also doesn’t check if the same compressor ref is already added to the stack.
I am sure most teams would only use one compressor anyways, if any. Not even sure if the rules allow for more. However, if a second compressor is used, for example in the off-season, the API will fail.

I see it now. The loop needs to terminate when the ref is handled. I’ll add a tracker.

Greg McKaskle

That is what I have added to my local copy.