1
Fork 0
mpu6050/viz
2019-04-23 21:30:29 +02:00
..
viz add linker cargo file for compilation to target linux-unknown 2019-04-23 21:30:29 +02:00
angles_data_raw.txt exemplary gyro and pitch/roll data 2019-04-23 21:29:28 +02:00
angles_data_soft_calib.txt exemplary gyro and pitch/roll data 2019-04-23 21:29:28 +02:00
gyro_data_raw.txt exemplary gyro and pitch/roll data 2019-04-23 21:29:28 +02:00
gyro_data_soft_calib.txt exemplary gyro and pitch/roll data 2019-04-23 21:29:28 +02:00
plot.py add plotting scripts for continous data 2019-04-23 21:29:58 +02:00
plot_rot.py add plotting scripts for continous data 2019-04-23 21:29:58 +02:00
README.md working with real data 2019-04-17 19:36:27 +02:00
requirements.txt require pandas 2019-04-23 21:28:34 +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