Compare View

switch
from
...
to
 
Commits (4)
.gitignore
... ... @@ -16,3 +16,6 @@
16 16 # Python caching
17 17 robots/little_john/telemetry/code/monitor/__pycache__/
18 18 *.pyc
  19 +
  20 +# New version of Pyglet, because Debian Stretch doesn't have a version new enough to work with Python3
  21 +robots/little_john/telemetry/code/monitor/pyglet/
... ...
robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py
1   -#!/usr/bin/env python2
  1 +#!/usr/bin/env python3
2 2  
3 3 # Tool to draw live graphs of data coming in from serial port
4 4 # Written as a telemetry tool by:
... ... @@ -168,7 +168,8 @@ def pollSerial(elapsed):
168 168 if os=='Windows':
169 169 values = datafeed.readline().strip().split(b", ")
170 170 else:
171   - values = datafeed.readline().strip().split(", ")
  171 + values = datafeed.readline().strip()#.split(', ')
  172 + values = str(values).split(", ")
172 173 testseries.addpoint(values)
173 174  
174 175 # Pyglet looks after the main event loop, but this ensures that data keeps being read in
... ...