FLL NXT Navigation Here is a very handy tool that helps you calculate distance and motor rotation Download the files from http://fllnxtnavigation.codeplex.com/ Project Description FLL NXT Navigation is a program that lets you draw lines on a scale image of the FLL (First Lego League) competition board. Each line you draw is a robot path and it gives you the distance of each line in rotations and the angles of each turn in rotations. Tutorials and Introductions
Ordinary move blocks will not take values in centimeters or inches, only motor rotations, seconds, degrees, or infinite. Using centimeters would be so much easier, don't you think? read the following blog and design your own move MyBlock. Other suggestions recommended by readers are to design the block to read in turning radius too, having a "MyBlock that allows you to pass in the number of degrees you want your robot to pivot about its center point (this is dependent on the wheels your robot uses, right?) If your wheel size (radius or diameter) is a constant in your program, you would only need to dynamically account for one passed variable (the desired number of degrees to pivot in place). HINT: CIRCUMFERENCE = 2 * Pi * RADIUS" Note: Make sure you initialize the Power variable with a non-zero value (like 50). and the Distance variable with a non-zero value (like 20), otherwise, the robot will just sit there and not move. Here is a good primer that will help explain how to accomplish exact turning.
MyBlocks Did you know if you have a sequence that you always use repeatedly, that you can make a MyBlocks out of it, and simplify your codes? Here is a link to a tutorial site all about MyBlocks |
Coach Resource >