Perhaps have your "start" and "stop" commands affect the presence/absence
of an acceleration for the camera. This way, the camera will smoothly
accelerate up to a top speed, and decelerate back down from it smoothly
when control is released. (Obviously "speed" can mean "angular speed" as
well as tr
You can simply remember the last state and not send any commands until
it changes.
On Tue, 18 Sep 2018 11:52:49 -0700
Alec Bennett wrote:
> I'm making a controller for a PTZ ("pan/tilt/zoom") camera using
> Pygame, so I can move the camera around with a gaming joystick. It
> works but the motion
I'm making a controller for a PTZ ("pan/tilt/zoom") camera using Pygame, so
I can move the camera around with a gaming joystick. It works but the
motion is very jerky.
The camera expects a "start" action ("start moving the camera left") and
then a stop action ("stop moving it"). I'm handling that