Log in

View Full Version : Bug in Compress state in WPI library


SuperS_5
18-01-2012, 01:09
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.

Greg McKaskle
18-01-2012, 08:24
I see it now. The loop needs to terminate when the ref is handled. I'll add a tracker.

Greg McKaskle

SuperS_5
18-01-2012, 13:21
That is what I have added to my local copy.