socallinuxexpo / web-control-interface

Volunteer web-control interfaces for ScaleAV 18x.
5 stars 0 forks source link

Sometimes pan buttons cause the camera to pan all the way to the side #29

Closed jbermudes closed 7 years ago

jbermudes commented 8 years ago

This is most likely caused by the stop request getting to the camera before the move request has completed, causing an infinite pan until the hardware limit

Solution:

On camera move AJAX request success, set a flag that enables stop messages to be sent. Then, in the stop function, check the flag, and if not allowed, setTimeout for a short delay and try again.

LeStarch commented 7 years ago

Fixed. Problem caused by sending requests too quickly and thus they are dropped. Must have at lease 200ms between requests for PTZ Optics cameras.