Commit 37bfdfe1 authored by enfo's avatar enfo

Removed wrong PATH, prettified output.

parent bfc862f4
......@@ -159,7 +159,6 @@ if __name__ == '__main__':
import sys
import numpy as np
PATH = '/dev/ttySyncboard02'
PATH = 'COM8'
if len(sys.argv) > 1:
PATH = sys.argv[1]
reader = SyncboardReader(PATH)
......@@ -195,10 +194,9 @@ if __name__ == '__main__':
if timediff == 0:
timediff = 1
fps = float(i)/(timediff)
stdout.write('\rfps: % 4.1f\t temp:% 3.2f\t' % tuple([fps, package.temp]))
stdout.write('accl: % 3.4f\t' % (np.linalg.norm(np.array(package.deltvel))*fps))
stdout.write(str(np.array(package.deltvel)*fps))
#stdout.write('% 11d % 11d % 11d' % (package.tov, package.tot, package.toa))
stdout.write('\rfps: % 6.1f | temp: % 5.2f ' % tuple([fps, package.temp]))
stdout.write('| accl: [% 7.3f, % 7.3f, % 7.3f]' % tuple(np.array(package.deltvel)*fps))
stdout.write(' (% 7.3f)' % (np.linalg.norm(np.array(package.deltvel))*fps))
stdout.flush()
i += 1
finally:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment