80b9c715b2
* gyro tutorials * tutorials * fix gyro simulator * images * updated image * fix svg errors
1.2 KiB
1.2 KiB
Calibrate Gyro
Introduction @fullscreen
The gyroscope is a very useful sensor in the EV3 system. It detects the rotation rate which can be very useful to correct the trajectory of the robot and do precise turns.
However, the sensor can be imprecise and subject to drifting. It is recommend to calibrate your sensor at least once after starting your brick. You don't have to recalibrate on every run.
Step 1 Show ports
Add the ||brick:show ports||
to see the status of the gyroscope.
brick.showPorts()
Step 2 Calibration
Add a ||sensors:calibrate gyro||
block to calibrate the gyro. The block
detects if the sensor is present and does a full reset of the sensor if necessary.
brick.showPorts()
sensors.gyro2.calibrate()
Step 3 Download and run @fullscreen
Download this program to your brick and press the ENTER button.