LEGO Engineering

| | | | | | | |
My synchronized motors won't follow the NXT-distance-control command. What is wrong?


19th of April, 2010

(3 )
100% thumbs up 0% thumbs down

You might have a mistake like the one in the program below. The writer of this program synced the motors, commanded A to rotate a certain amount, but then neglected to turn Motor A on.



To use the NXT-distance-control command, you must follow it with a motor power command. You should also follow that command with a wait-for-rotation or a song or other stalling icon, because the distance-control-command is running in the background, and no other commands will work until the specified rotations have been achieved.

The following program correctly uses the sync command and the NXT-distance-control command.



As shown above, if you want your motors to rotate a precise amount\ntogether, the BEST strategy is to sync them and then use the\nNXT-distance-control command for the controller motor. This\nstrategy works better than the program shown below, where the\nprogrammer attempts to control each motor separately.



The program above is NOT the optimal strategy for two motors to rotate together.





KBW
   :
   :
* :
* :
 


Home | About Us | Contact Us

© 2013 Center for Engineering Educational Outreach, Tufts University
© 2013 The LEGO Group. All rights reserved.