View Single Post
  #8   Spotlight this post!  
Unread 16-03-2011, 14:42
spacepenguine spacepenguine is offline
Registered User
AKA: Ian Hartwig
no team
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2008
Location: Troy, MI
Posts: 43
spacepenguine is an unknown quantity at this point
Re: spike, solenoid problems

What programming language are you using? We have programmed solenoids both off the pneumatics bumper and spikes (we ran out of bumper slots =P) in C++. There is good documentation in the WPILib Users Guide (http://firstforge.wpi.edu/sf/docman/...tation/doc1196).

Using pneumatics with the spikes can be a little tricky, but basically you initilize with

Relay m_relay(1); //number is relay port

then use

m_relay.Set(Relay::kOff); //no output)
m_relay.Set(Relay::kForward); //activate one side of solenoid)
m_relay.Set(Relay::kReverse); //activate other side)

to control in the program.
__________________
2008-2011: #226 - The Hammerheads