Knowledge Base

Get Gyro Reset Block

output-onlinepngtools__231_.png  This block works for both EV3 Robot and Ruby Robot!  output-onlinepngtools__101_.png


The Get Gyro Reset block is extremely useful whenever you want to repeat a turn, without accumulating the total degrees turned. For example: If you need the robot to turn 90 degrees 4 times.

This example code drives the EV3 robot along a square path. The Gyro helps the robot turn 90 degrees at each corner using a Wait Until Gyro block, then resets the sensor with the Get Gyro Reset block at the end of the loop. This way, each iteration of the loop starts with the Gyro sensor at 0.


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


Please sign in to leave a comment.

Powered by Zendesk