View Single Post
  #16   Spotlight this post!  
Unread 23-03-2011, 15:18
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Help with WindRiver pneumatics code

Quote:
Originally Posted by mutantblond View Post
we're initializing s1(8,1), s1(8,2). i'm still puzzled about how this works when we've got the solenoid valves connected to pins 7 and 8.
the constructor takes two arguments, (modulePort, breakoutPort)
modulePort is the number of the module in the crio's 8 bays. It should be 8.
breakoutPort is the pin number on the breakout board on the module. It should be 7 and 8 according to what I think you are saying.

If you want to wire to 7 and 8, use s1(8,7), s1(8,8)
if you want to use s1(8,1), s1(8,2), wire to breakout pins 1 and 2
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote