Autotracking: reset motion estimator (#7129)

* reset motion estimator after returning to preset

* small tweaks and a bugfix
This commit is contained in:
Josh Hawkins
2023-07-13 05:32:51 -05:00
committed by GitHub
parent 7a2d09dc35
commit c9254b256a
4 changed files with 96 additions and 48 deletions

View File

@@ -172,6 +172,7 @@ class FrigateApp:
self.config.cameras[camera_name].onvif.autotracking.enabled,
),
"ptz_stopped": mp.Event(),
"ptz_reset": mp.Event(),
"ptz_start_time": mp.Value("d", 0.0), # type: ignore[typeddict-item]
# issue https://github.com/python/typeshed/issues/8799
# from mypy 0.981 onwards