From 6fc368d4d81ffb6fae72950d793cea30652d3a2c Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sat, 8 Jul 2023 15:52:23 -0500 Subject: [PATCH] No need to move pan and tilt separately --- frigate/ptz/onvif.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/frigate/ptz/onvif.py b/frigate/ptz/onvif.py index af8cd3768..5bbe7a873 100644 --- a/frigate/ptz/onvif.py +++ b/frigate/ptz/onvif.py @@ -247,14 +247,7 @@ class OnvifController: "Zoom": 0, } - # move pan and tilt separately move_request.Translation.PanTilt.x = pan - move_request.Translation.PanTilt.y = 0 - move_request.Translation.Zoom.x = 0 - - onvif.get_service("ptz").RelativeMove(move_request) - - move_request.Translation.PanTilt.x = 0 move_request.Translation.PanTilt.y = tilt move_request.Translation.Zoom.x = 0