From d669bc40d49f55c483cd7454c262e968078bb829 Mon Sep 17 00:00:00 2001 From: Christopher Stone Date: Thu, 8 Mar 2018 20:14:44 +0000 Subject: [PATCH] Changed input processing to accomodate Py3's stricter type requirements --- robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py b/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py index ad6b501..06f4b4e 100755 --- a/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py +++ b/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py @@ -167,7 +167,8 @@ def pollSerial(elapsed): if os=='Windows': values = datafeed.readline().strip().split(b", ") else: - values = datafeed.readline().strip().split(", ") + values = datafeed.readline().strip()#.split(', ') + values = str(values).split(", ") testseries.addpoint(values) # Pyglet looks after the main event loop, but this ensures that data keeps being read in -- libgit2 0.21.2