Mercury1089 / 2018-robot-code

Robot code for the FIRST FRC 2018 season FIRST Power Up.
2 stars 0 forks source link

PDP Current Log #2

Closed DrewTheRat closed 6 years ago

DrewTheRat commented 6 years ago

Goal:

Log the current from each PDP channel to a CSV for later analysis. THe main goal would be to diagnose brownouts.

Acceptance Criteria:

AarjavP commented 6 years ago

With yesterday's (untested) changes, the log files will be in ~/logs/ directory, with log file names in pdp-MMdd_HHmmss.csv format (ex: pdp-0110_173042.csv), and the file is created every time the command's initialize is called (the idea is to have separate files for auton and teleop).

The format is

Time,TotalCurrent,Temperature,TotalEnergy,TotalPower,Voltage,Channel 0,Channel 1,Channel 2,...,Channel 15

logging with minimum 1 second in between each line.

TODO: use match number in file name when/if available along with match time when available.

rpatel3001 commented 6 years ago

I'd recommend using ss.SSS in the status line format to allow subsecond logging to capture short transients. Also, include a raw milliseconds columns to make graphing easier (unless excel can make sense of a human readable timestamp)

AarjavP commented 6 years ago

Don't forget to close this if its been tested and works