mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
No need to move pan and tilt separately
This commit is contained in:
parent
e1224dcf28
commit
6fc368d4d8
@ -247,14 +247,7 @@ class OnvifController:
|
|||||||
"Zoom": 0,
|
"Zoom": 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
# move pan and tilt separately
|
|
||||||
move_request.Translation.PanTilt.x = pan
|
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.PanTilt.y = tilt
|
||||||
move_request.Translation.Zoom.x = 0
|
move_request.Translation.Zoom.x = 0
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user