diff --git a/remote_control/position_controller.py b/remote_control/position_controller.py index 1caf473..4cef0f1 100644 --- a/remote_control/position_controller.py +++ b/remote_control/position_controller.py @@ -62,7 +62,7 @@ def f_ode(t, x, u): class RemoteController: def __init__(self): - self.robots = [Robot(5)] + self.robots = [Robot(3)] self.robot_ids = {} for r in self.robots: @@ -488,9 +488,10 @@ class RemoteController: for i in range(0, 1): u1 = us1[i] u2 = us2[i] - self.rc_socket.send('({},{},{})\n'.format(dt,u1, u2)) + #self.rc_socket.send('({},{},{})\n'.format(dt,u1, u2)) + self.rc_socket.send('({},{})\n'.format(u1, u2)) self.t = time.time() - #time.sleep(0.2) + time.sleep(0.2) #