View Single Post
  #5   Spotlight this post!  
Unread 18-02-2012, 14:30
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: Help Please!(Rookie Team)

Quote:
Originally Posted by NS_Radication View Post
Correction:

relay.set(Relay.Value.kForward or kReverse)

Should be

relay.setDirection(Relay.Direction.kForward or kReverse, or kBoth);
As much as I love your avatar, I have to say you're wrong on this. .set() is what actually sets the value of the relay, .setDirection() is just the possible directions it can be set. Many a screwup on our team has been caused by mixing those up.
Reply With Quote