testing not sending time in mpc

simple_control
Simon Pirkelmann 2019-06-26 10:49:52 +02:00
parent 0835690659
commit 2711373d44
1 changed files with 4 additions and 3 deletions

View File

@ -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)
#