tried putting gyro code in interrupt. didn't work well