Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mono #14

Merged
merged 31 commits into from
Apr 19, 2021
Merged

Mono #14

Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update camera.py
  • Loading branch information
luke-iqt committed Mar 22, 2021
commit 05f75735d16ba968f40af4f8d4699108fc558928
6 changes: 3 additions & 3 deletions axis-ptz/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ def setXY(x,y):

def setPan(bearing):
global pan
diff_heading = getHeadingDiff(bearing, cameraBearing)
#diff_heading = getHeadingDiff(bearing, cameraBearing)


if pan != diff_heading: #bearing #abs(pan - diff_heading) > 2: #only update the pan if there has been a big change
if pan != bearing: #bearing #abs(pan - diff_heading) > 2: #only update the pan if there has been a big change
#logging.info("Heading Diff %d for Bearing %d & Camera Bearing: %d"% (diff_heading, bearing, cameraBearing))

pan = diff_heading #bearing
pan = bearing
#logging.info("Setting Pan to: %d"%pan)

return True
Expand Down