feat: added message for move
This commit is contained in:
12
app.py
12
app.py
@@ -46,10 +46,16 @@ def image_stream():
|
||||
return ""
|
||||
|
||||
|
||||
@sio.on("camera")
|
||||
def camera_message(directions):
|
||||
walle.set_movement(directions['angle'], directions['force'])
|
||||
print(f"Moving camera in direction {directions['angle']:f} with velocity {directions['force']}")
|
||||
|
||||
|
||||
@sio.on("move")
|
||||
def message(directions):
|
||||
walle.set_movement(directions['angle'], directions['distance'])
|
||||
print(f"Moving in direction {directions['angle']:f} with velocity {directions['distance']}")
|
||||
def move_message(directions):
|
||||
walle.set_movement(directions['angle'], directions['force'])
|
||||
print(f"Moving in direction {directions['angle']:f} with velocity {directions['force']}")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user