View Single Post
  #5   Spotlight this post!  
Unread 16-03-2014, 09:26
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: Spike relay only works in reverse

We usually instantiate our Spikes like so:

Code:
Relay spike = new Relay(1);
We do not even include the Direction in our instantiation of the object. Also, we also set the Spike to the off position right after instantiation:

Code:
spike.set(Relay.Value.kOff);
Alex Brinister

Last edited by AlexBrinister : 16-03-2014 at 09:29. Reason: Messed up Direction and Value
Reply With Quote