What does RotateUpDown
and RotateRightLeft
expect? Absolute values or differential values?
I would assume gyro.rotationRate
is a differential value.
Is it scaled in the same units that the above functions expect?
Would that scaling break down if sensitivity
changed?
Is sensitivity = 50.0f
a magic number?
Don’t use Magic Numbers:
Instead, know where the number comes from and compute it from the correct inputs.