loading
 
Keyboard control over Lego Mindstorms
mac from United States  [2 posts]
9 years
ok my goal was to control only one motor of my RCX robot using my keyboard, were when i press my left arrow key it supposed to move to the left for a small amount of time and the right arrow key is supposed to move the robot to the right for some amount of time. But instead when i tried this the robot turned on one of its motor for indefinate until i had to turn the unit off. heres my code for it

Keyboard
If X = 1
Lego
Set X = 0
end if
If X = -1
Lego
Set X = 0
end if

the following pictures are showing part of the code.
and i have the robo file in there so plz help!

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index