View Single Post
  #4   Spotlight this post!  
Unread 05-12-2015, 22:43
GeeTwo's Avatar
GeeTwo GeeTwo is online now
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,654
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Spike Code Problems

No, not quite the same mistake; I made my own mistake of switching the two as I moved back and forth between windows.

To correct my previous post: within the initialization method, setDirection() should be once, with either kForward_val or kReverse_val.

set() should be called in both branches of an if-then-else in the while loop in operatorControl(), on with kOff_val, the other with kOn_val.

If the system winds up running backward, just change the call to setDirection.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote