
Re: Buttons do not seem to work on the remote
The problem you are seeing is that the button commands are outside of the infinite loop. The
condition will never be false, so therefore anything below the while loop will never be reached.
Something else you may want to consider; when do you want your robot arm to stop moving, and where in the code does the arm motor stop? Take a look at our Cortex Video Trainer (specifically the Remote Control -> Buttons -> Controlling the Arm section). It's something I recommend every ROBOTC programmer goes through at least once to learn everything from the basic to the intermediate programming practices:
http://www.education.rec.ri.cmu.edu/pro ... index.html
_________________Check out our
Blog! And our
Facebook page!
Need help? Take a look at our
Wiki and our
Forums.I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe? ~ Carly Rae Jepsen parody