1
Fork 0
mpu6050/viz
juliangaal e1a8c17a2f clean
2019-04-23 11:05:35 +02:00
..
viz clean 2019-04-23 11:05:35 +02:00
README.md working with real data 2019-04-17 19:36:27 +02:00
requirements.txt basic line plotting 2019-04-17 10:49:52 +02:00
sample.txt real roll pitch data 2019-04-17 19:36:15 +02:00
viz.py working with real data 2019-04-17 19:36:27 +02:00

Python script to visualize data, e.g. roll and pitch, used for testing and demonstration purposes

Accepted file format from data recording, e.g.

1,2
2,3
3,6
4,9
5,4
6,7
7,7
8,4
9,3
10,7

"rate" defines the number of steps from one data point to the next. I.e. if the sensor pumps out 100 measurements a second, it takes way too long to visualize like this. Adjust rate to e.g. 25 to do 25% faster run:

$ python3 viz.py 25

For requirements, see requirements.txt

On linux, you need to install tkinter with

$ sudo apt-get install python3-tk

If you're having issues with matplotlib, install with apt

$ sudo apt-get install python3-matplotlib