View Single Post
  #1   Spotlight this post!  
Unread 27-01-2013, 18:15
Gmercer Gmercer is offline
Registered User
None #1631
 
Join Date: Jan 2013
Location: Las Vegas
Posts: 15
Gmercer is an unknown quantity at this point
Limiting the amount of air sent to a solenoid

I need to limit the amount of air sent into a solenoid to 'lightly' push a frisbee into the shooter. At the moment the solenoid fires the frisbee out and gets it stuck in the middle of the two wheels. I would like to have it slowly move foreword, here is the current solenoid code i have:

inside my extend solenoid function

Code:
if (joy1.getRawButton(11)) {
	Arm3.extend();
}
else if (joy1.getRawButton(12) {
	Arm3.retract();
}
extend and recract functions:
Code:
public void extend()
{
	sol1.set(false);
	sol2.set(true);
}

public void retract()
{
	sol1.set(true);
	sol2.set(false);
}

Last edited by Gmercer : 27-01-2013 at 18:20.