Gyro test code