debug
This commit is contained in:
parent
b408a89c1d
commit
ef0f8bf22f
|
@ -103,6 +103,7 @@ class API(object):
|
|||
|
||||
def setPreset(self, **data):
|
||||
result = {}
|
||||
print('setPreset', data)
|
||||
ctl.camera.set_preset(data['id'], data['name'])
|
||||
return result
|
||||
|
||||
|
@ -137,6 +138,7 @@ class API(object):
|
|||
speed = int(data.get('speed', 1))
|
||||
for key in direction:
|
||||
direction[key] *= speed
|
||||
print('move', direction)
|
||||
ctl.camera.momentary(direction, float(data.get('duration', 1)))
|
||||
return result
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user