From 2c1da38482345d3d7db94bb107e0530b601258bd Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Tue, 22 Dec 2020 19:49:06 -0500 Subject: [PATCH] Update camera.py --- pan-tilt-pi/camera.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pan-tilt-pi/camera.py b/pan-tilt-pi/camera.py index 6598253..188eb01 100755 --- a/pan-tilt-pi/camera.py +++ b/pan-tilt-pi/camera.py @@ -49,7 +49,7 @@ def setPan(bearing): global pan camera_bearing = args.bearing diff_heading = getHeadingDiff(camera_bearing, bearing) - logging.info("Heading Diff %d for Bearing %d "% (pan, bearing)) + logging.info("Heading Diff %d for Bearing %d "% (diff_heading, bearing)) if diff_heading > -90 and diff_heading < 90: if abs(pan - diff_heading) > 2: @@ -84,7 +84,7 @@ def moveCamera(): pantilthat.tilt(actualTilt) pantilthat.pan(actualPan) # Sleep for a bit so we're not hammering the HAT with updates - time.sleep(0.05) + time.sleep(0.1) ############################################# ## MQTT Callback Function ## #############################################