Program the robot to wait for a 5% difference in the gyro rate reading, and to play a sound with the same frequency as the measured rate for 0.1 seconds.