Skip to content

Commit

Permalink
Update camera.py
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-iqt committed Dec 23, 2020
1 parent cff5528 commit 2c1da38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pan-tilt-pi/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 ##
#############################################
Expand Down

0 comments on commit 2c1da38

Please sign in to comment.