Compare View

switch
from
...
to
 
Commits (4)
@@ -16,3 +16,6 @@ @@ -16,3 +16,6 @@
16 # Python caching 16 # Python caching
17 robots/little_john/telemetry/code/monitor/__pycache__/ 17 robots/little_john/telemetry/code/monitor/__pycache__/
18 *.pyc 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 # Tool to draw live graphs of data coming in from serial port 3 # Tool to draw live graphs of data coming in from serial port
4 # Written as a telemetry tool by: 4 # Written as a telemetry tool by:
@@ -168,7 +168,8 @@ def pollSerial(elapsed): @@ -168,7 +168,8 @@ def pollSerial(elapsed):
168 if os=='Windows': 168 if os=='Windows':
169 values = datafeed.readline().strip().split(b", ") 169 values = datafeed.readline().strip().split(b", ")
170 else: 170 else:
171 - values = datafeed.readline().strip().split(", ") 171 + values = datafeed.readline().strip()#.split(', ')
  172 + values = str(values).split(", ")
172 testseries.addpoint(values) 173 testseries.addpoint(values)
173 174
174 # Pyglet looks after the main event loop, but this ensures that data keeps being read in 175 # Pyglet looks after the main event loop, but this ensures that data keeps being read in