From 9d0f0b110caad5302f32d660f02510a9cfc600a2 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Wed, 23 Dec 2020 08:44:53 -0500 Subject: [PATCH] Update camera.py --- pan-tilt-pi/camera.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pan-tilt-pi/camera.py b/pan-tilt-pi/camera.py index cb64611..ae0ad93 100755 --- a/pan-tilt-pi/camera.py +++ b/pan-tilt-pi/camera.py @@ -74,21 +74,21 @@ def moveCamera(): global actualTilt while True: if actualTilt != tilt: - logging.info("Moving Tilt to: %d"%actualTilt) + logging.info("Moving Tilt to: %d Goal: %d"%(actualTilt, tilt)) if actualTilt < tilt: actualTilt += 1 else: actualTilt -= 1 if actualPan != pan: - logging.info("Moving Pan to: %d"%actualPan) + logging.info("Moving Pan to: %d Goal: %d"%(actualPan, pan)) if actualPan < pan: actualPan += 1 else: actualPan -= 1 - pantilthat.tilt(actualTilt) + #pantilthat.tilt(actualTilt) pantilthat.pan(actualPan) # Sleep for a bit so we're not hammering the HAT with updates - time.sleep(0.5) + time.sleep(0.05) ############################################# ## MQTT Callback Function ## #############################################