View Single Post
  #2   Spotlight this post!  
Unread 19-02-2013, 12:54
kylelanman's Avatar
kylelanman kylelanman is offline
Programming Mentor
AKA: Kyle
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Tremont Il
Posts: 190
kylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to all
Re: Solenoid Programming Help

You may be aware of this but the module number you feed in is relative to the number of Solenoid cards you have. It is not the slot number. We ran into this issue. We had a second Solenoid card in slot 4 and were getting the error. When trying to create a solenoid like this.

Code:
new Solenoid(4, 1);
In reality we had to use.

Code:
new Solenoid(2, 1);
*Note I don't have the code in front of me. It is possible the number is 0 based in which case it would 1 not 2.

Hope this helps.
__________________
"May the coms be with you"

Is this a "programming error" or a "programmer error"?