Reply To: Preparations for GyroBot

HomeForumsMonoBrick EV3 FirmwarePreparations for GyroBotReply To: Preparations for GyroBot

#3931
Author Image
Jacek S
Participant

Hi,
I don’t know how to calibrate sensor. In lejos code I found they are using mode=4 for hardware calibration
EV3GyroSensor.java RESETMODE = 4 and SWITCHDELAY = 200ms


  /**
   * Hardware calibration of the Gyro sensor. <br>
   * The sensor should be motionless during calibration.
   */
  public void reset() {
    // TODO: Test if angle is reset to zero due to calibration
    // TODO: find out how to get out of calibration mode
    switchMode(RESETMODE, SWITCHDELAY);
  }

I think is no need to calculate offset. In labview and other examples they are using const values. In this case is 0.001

I’ll make a video soon.

  • This reply was modified 10 years, 2 months ago by Author ImageJacek S.
Posted in

Make a donation