changed gyro still detection to a define