View Single Post
  #6   Spotlight this post!  
Unread 03-21-2011, 05:50 PM
mutantblond mutantblond is offline
Registered User
FRC #2523
 
Join Date: Sep 2008
Location: st. johnsbury, vt
Posts: 43
mutantblond is an unknown quantity at this point
Re: Help with WindRiver pneumatics code

hi,
I'm still confused after reading these examples. we're trying out pneumatics code also - it goes as follows:
arm_button1 = arm_stick.GetRawButton(1);
if (arm_button1)
{
s1.Set(0);
s2.Set(1);
}
else
{
s1.Set(1);
s2.Set(0);
}
I've declared s1 and s2 as Solenoids under the Class section, and initialized them as s1(1,1) and s1(1,2) in the Public section. But they are connected to pins 1 and 2 on the Digital Output Module. Which numbers in parentheses refer to the pins of the DOM? How can we trouble shoot this? we're not getting any response when we press button 1 on our joystick.
Reply With Quote