View Single Post
  #1   Spotlight this post!  
Unread 24-01-2015, 12:12
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 67
jfitz0807 is an unknown quantity at this point
Another DoubleSolenoid question

We're constructing our DoubleSolenoid as follows in RobotMap.cpp

pneumaticSubsystemSolenoid = new DoubleSolenoid(11, 0, 1);

The '11' is the CAN ID of the PCM. With these parameters, our compressor starts automatically as expected. However, we're getting the following error:

Error on line 87 of Resource.cpp: Allocating channel that is out of range: Solenoid 0 (Module: 11)

When we change the '11' to a '1', this error goes away, but our compressor doesn't start.

Any thoughts?
Reply With Quote