|
Re: programing the vex optical shaft encoder
Quote:
Originally Posted by youngWilliam14
ok, i put in print statements before, in, and after the loop. before the loop, 'swerve' is zero. the first time though the loop, it's still zero, but the second time through it says 127!?!? so it quits the loop.
***EDIT***
i forgot to say that the print statement in the loop is AFTER it checks for the button
|
Assuming swerve is defined as a char then that makes sense, it should equal 127 if the button is pushed.
__________________
I'm Back
5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
|