Here is something that all you people programming the NXT may find helpful. According to RobotC and my experience, the NXT has hardware limitations that make it so that it can not recognize multiple button presses. If you have three switches inside a loop to show what buttons are pressed, it will see only one at a time. But, if you have a loop that exits when true and you have an AND logic block with the true/false inputs from two buttons, psuedo code following, then it will seem to recognize both.
do {/*stuff*/} until (l)==true AND (r)==true... It will exit when both are pressed.
Welcome to NXT-progs! Here you will find programs for NXT-G created by me and other NXT-progs contributers. Free downloads of these programs are available in the posts; just click the links. Please give feedback for the programs you download. For any questions, contact me at rrffcre@gmail.com. Enjoy!
Pages
Usage Policy
These programs are designed for recreational and educational use by non-competitive individuals only. The use of these programs in competitive events (e.g. FLL) is prohibited. NXT-progs is not responsible for the misuse of these programs.
No comments:
Post a Comment