Code Not Recognizing Second PCM
I asked a question on here a while ago asking how to wire multiple PCMs, and I wired in in the can bus in series exactly how people said. As I can see on the roboRIO system configuration, the roboRIO recognizes both PCMs and has labeled them 0 and 1. However, when I upload our code to the roboRIO, and enable the robot, it says
Unhandled exception: edu.wpi.first.wpilibj.util.AllocationException: Solenoid channel 0 on module 1 is already allocated at [edu.wpi.first.wpilibj.Solenoid.initSolenoid(Soleno id.java:41)...
I have not allocated that channel anywhere in the code, and it gives the same error no matter what module ID I use or channel number.
Has anyone else had this same issue? Are the PCMs wired wrong? Thanks
__________________
|