vendredi 24 août 2012

Week 4-1 Swing rotation


Turning your robot is a crucial and standard task while commanding your robot to move, it is very rare to find a circuit with no turns.)
For bidirectional robot like the taskbot we made there are three possible ways of rotations;
Swing rotation
Parallel rotation
Point rotation
In this class we will talk about the swing rotation:
This kind of rotation is the simplest the main idea is when you want to turn left or right just stop a wheel and let the other wheel keep running.

For example, if we want to turn right, all what we have to do is to stop the right  and command the left wheel to move so the robot will turn right.
If we want to turn left,.. I guess you got it J
This kind of rotation is mainly used for turns like 90° or less in a straight circuit (a circuit with no curves)
To illustrate this example you should made a circuit like bellow and then ls will create the algorithm needed to follow this circuit.

First ls should create their first flowchart so you will help them:

To create a swing rotation using nxt-g put 2 move blocks.
In the first move block you select one portàthe motor witch you want to block or stop
Next of it in the second move block select one port -> the motor witch you want to run

Aucun commentaire:

Enregistrer un commentaire