Home→Forums→MonoBrick EV3 Firmware→Preparations for GyroBot→Reply To: Preparations for GyroBot
February 3, 2014 at 11:57
#3931
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, 7 months ago by Jacek S.
Follow