Compare View
Commits (4)
Showing
2 changed files
Show diff stats
.gitignore
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 | ... | ... |