View Single Post
  #11   Spotlight this post!  
Unread 27-01-2015, 02:35
ElJeffe3255's Avatar
ElJeffe3255 ElJeffe3255 is offline
Registered User
AKA: El Jeffe
FRC #3255 (SuperNURDS)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2011
Location: Escondido, CA
Posts: 14
ElJeffe3255 is an unknown quantity at this point
Re: Multiple pneumatics control modules?

Team 3255 believes they found a bug in the Java library using multiple PCMs. When we created a DoubleSolenoid on each PCM, we told it which module for each solenoid as the first argument. Calling the set method to kForward or kReverse worked fine for both. But get always returned the same value for the solenoid on the 2nd module regardless of its setting. Taking a quick look at the Java source for WPILib, I believe it's always returning the value of the slots from the first module on a get. We worked around it by caching the state in a local variable. We plan on submitting a bug report (once we learn how to do that).