|
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.
|