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