warn about missing azimuth
This commit is contained in:
parent
df190dda02
commit
329cb1083d
|
@ -289,9 +289,12 @@ class Camera:
|
|||
#print(current, delta, move)
|
||||
current, delta = get_delta()
|
||||
changed = False
|
||||
if 'azimuth' in delta and 'azimuth' in direction:
|
||||
if pan and (not delta['azimuth'] or (delta['azimuth'] >= 0) != direction['azimuth']):
|
||||
pan = 0
|
||||
changed = True
|
||||
else:
|
||||
print('why no azimuth? delta: %s direction: %s' % (delta, direction))
|
||||
'''
|
||||
if pan > 0:
|
||||
pan = min(pan, delta['azimuth'])
|
||||
|
|
Loading…
Reference in New Issue
Block a user