AGHSEagleRobotics / frc1388-2020

FRC 2020 - INFINITE RECHARGE
3 stars 0 forks source link

Use ShuffleBoard NetworkTables for data logging #40

Open scottbot95 opened 4 years ago

scottbot95 commented 4 years ago

ShuffleBoard has some level of logging to .csv files for data coming from the NetworkTable.

jtechau commented 4 years ago

I created a DataLogging class which just puts data into the NetworkTable. This shows up in a Shuffleboard recording as expected. Details still need to be worked out, but this approach seems viable.

The Shuffleboard recording contains all NetworkTable entries, so it's very verbose. I wrote a python script to filter the CSV file down to the desired columns. Needs to be cleaned up and placed in an appropriate location in the project.

jtechau commented 4 years ago

Added a DataLogging branch, which contains a DataLogging class and example code to show how to use it. Also includes a python script to format the recorded CSV file from Shuffleboard to filter the data to contain only the DataLog data, instead of the entire NetworkTable.