Skip to content

LEGO EV3 Gyro Sensor (45505)

David Lechner edited this page Apr 23, 2014 · 7 revisions

General

This sensor uses the msensor device class.

Value
type_id 32
# Modes 5
Connection UART

Modes

Mode 0 Mode 1 Mode 2 Mode 3 Mode 4
mode GYRO-ANG GYRO-RATE GYRO-FAS GYRO-G&A GYRO-CAL
Description Angle Rotational Speed Raw sensor value ??? Angle and Rotational Speed Calibration ???
num_values 1 1 1 2 4
value0 Angle Rotational Speed ??? Angle
 Min -32768 -440 -1464??? -32768
 Max 32767 440 1535??? 32767
value1 Rotational Speed
 Min -440
 Max 440
units deg (degrees) d/s (degrees/second) none none none
dp (decimal places) 0 0 0 0 0
Values in the tables that look like ```this``` are the names of sysfs attributes or values returned by said attributes.

Notes

  • Clockwise is positive when looking at the side of the sensor with the arrows.
  • If the sensor is moving when changing modes, the calibration will be off.
  • If you spin around too many times in GYRO-ANG or GYRO-G&A mode, it will get stuck at 32767.
  • The angle in GYRO-ANG or GYRO-G&A modes can be reset by changing to a different mode and changing back.
Clone this wiki locally