DexterInd / BrickPi

The BrickPi Project Combining the Raspberry Pi and LEGO MINDSTORMS
263 stars 167 forks source link

Incorrect rotational speed with EV3 Gyro #47

Open zipper555 opened 5 years ago

zipper555 commented 5 years ago

The mode TYPE_SENSOR_EV3_GYRO_M1 doesn't give the rotational speed, it instead reads out the angle same as TYPE_SENSOR_EV3_GYRO_M0. In fact, I tried all the modes and none of it give the rotational speed. https://github.com/DexterInd/BrickPi/blob/df3da4807db23e21b287aacaf19daf08f25e97b1/Software/BrickPi_Python/Sensor_Examples/EV3-Gyro.py#L11

The same query is posted in the forum too. https://forum.dexterindustries.com/t/how-to-read-the-rate-of-rotation-using-ev3-dev-gyro-sensor/6832