From https://github.com/ohguma/analog_gyro_2021