Gyro calibration can be done automatically when accelerometers indicate no movement, with data from accelerometers and digital compass.