From 2711373d44657a9bb5a497b9002169e5f4f38b89 Mon Sep 17 00:00:00 2001 From: spirkelmann Date: Wed, 26 Jun 2019 10:49:52 +0200 Subject: [PATCH] testing not sending time in mpc --- remote_control/position_controller.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) #