Skip to content
Snippets Groups Projects
Commit 31a2b2fb authored by Chair on Fire's avatar Chair on Fire
Browse files

Decreased SAVED control rate to 50, acceleration history to 10.

parent f101372f
No related branches found
No related tags found
1 merge request!1Added SAVED integration.
......@@ -140,9 +140,9 @@ class Control(object):
def savedloop(self, human=False):
# old duty signal
# |
# | acceleration history
# | /---------------------------\
state = "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"
# | acceleration history
# | /-----------------\
state = "0 0 0 0 0 0 0 0 0 0 0"
t = time.time()
controller = subprocess.Popen(['/opt/draisine-hypro/tool/build/bin/controller', '--continuous'], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
......@@ -211,7 +211,7 @@ if __name__ == '__main__':
else: usage()
i += 1
dc = Control(logfile=filename, precision=(75 if saved else 150))
dc = Control(logfile=filename, precision=(50 if saved else 150))
if (saved):
dc.savedloop(human)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment