That is what you have just done:
- You measure the gyro deviation;
- You multiply the deviation by 20;
- Add 1000 to the result;
- Set the end result as the sound block frequency rate.
This is another algorithm you have created today! Excellent!
Important: it doesn’t matter whether the gyro deviation is 0, 10 or -1000. This algorithm will work with all unknown values!