View Single Post
  #5   Spotlight this post!  
Unread 10-02-2005, 19:57
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Pneumatics-Code [and piston output length]

Quote:
Originally Posted by Max Lobovsky
I believe he is asking about how to control how long the piston extends in code. There is no easy way to do this without sensors, feedback, and multiple solenoids per cylinder. If it really is important, search multipositioning with cylinders for some help on the topic.
We did this last year. The key for us was a solenoid that centers when there is no power (Meaning if relay1_fwd == 0 and relay1_rev == 0, no air would move). Otherwise, you can use 2 solenoids: one as a go/no go, the other for direction. See the shoulder_* functions in grabber.c in the 1227 code for an example.