-
Notifications
You must be signed in to change notification settings - Fork 43
Gyro Sensor
Cort edited this page Jul 31, 2020
·
3 revisions
This simulates a gyro sensor, not unlike those found on a Lego EV3 robot. Note that the angle is cumulative and can go beyond 360 degrees.
This simply returns the heading of the sensor. A reset will set the current angle to zero.
-
A real sensor will experience a certain amount of drift. The simulated sensor will never drift.
-
Later models of the EV3 gyro contains a 3-Axis gyro internally and the other axis readings can be obtained through ev3dev (...but not through the Python API). The simulated sensor only have a single axis.
Default values are shown below.
"type": "GyroSensor",
"options": {
}
* The Gyro Sensor has no options and you can only set position and not rotation.
Python References