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