BetterJoy
BetterJoy copied to clipboard
[BUG]when extraGyroFeature == "mouse", slow movement and no response
Describe the bug I moved the handle very slow,some data was drop!!!
Expected behavior dx = (int)(GyroMouseSensitivityX * (gyr_g.Z * dt)); When gyr_g.Z is very small,dx will set to 0, Actually,
Here is a fix:
float gyr_sum_y = 0;
float gyr_sum_z = 0;
When the current moving distance is less than 1.0, we first add to sum, where gyr_ sum_ y > 1.0, we use this sum as input to solve the problem of slow movement and no response. GyroMouseNoise: very small value will be set to suppress the drift of the sensor,such as 0.05