Knowledge Base

Turn Block (Adventure)

output-onlinepngtools__231_.png  This block works for EV3 Robot in the CoderZ Adventure Course

mceclip0.png

The Turn block turns the robot left or right. You can choose the two directions from the drop-down menu.

Expanding the Turn Block to include Angles

If you want to turn (either left or right) to a specific angle, you can expand the Turn block and add an 'Angle' parameter. Here's how:

1. Click the blue wheel icon
2. Select 'set Angle'
3. Drag a number block from the Data menu and snap it to the 'Angle' parameter
4. Type in the angle to turn to. Make sure to use positive/negative values as necessary.

expand_turn.gif

 

Expanding the Turn Block to include Radius

If you want the robot to drive in an arc/smooth turn (rather than turning on the spot) in a specific radius, you can expand the Turn block and add an 'Radius' parameter as well. Here's how:

1. Click the blue wheel icon
2. Select 'set Radius'
3. Drag a number block from the Data menu and snap it to the 'Angle' parameter
4. Type in the radius to turn to.
Note: you must include an angle parameter as well, since the robot needs both parameters to drive in an arc. 

Was this article helpful?
1 out of 1 found this helpful

Comments

Please sign in to leave a comment.

Powered by Zendesk