Commit 5a2d0b6a authored by Julian Oes's avatar Julian Oes

JoystickInput: only send 25Hz commands

parent 8353517d
......@@ -554,8 +554,8 @@ void JoystickInput::run()
emit joystickChanged(roll, pitch, yaw, throttle, xHat, yHat, joystickButtons);
}
// Sleep, update rate of joystick is approx. 50 Hz (1000 ms / 50 = 20 ms)
QGC::SLEEP::msleep(20);
// Sleep, update rate of joystick is approx. 25 Hz (1000 ms / 25 = 40 ms)
QGC::SLEEP::msleep(40);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment