OVVE / software-controller

Software for the Arduino Mega
Other
2 stars 7 forks source link

Debug millis #43

Open inakypg opened 4 years ago

inakypg commented 4 years ago

DEBUG_PLOT: add millisecond stamping

When using DEBUG_PLOT, prefix each line with a millisecond stamp (since boot).

Signed-off-by: Inaky Perez-Gonzalez inaky.perez-gonzalez@intel.com

mrrosen commented 4 years ago

I think we need to make this optional if we still want to support the Arduino plotter; since the Arduino plotter will plot millis as a line that will eventually auto-scale the values being examines into nothing. It might be good to add a DEBUG_PLOTTER macro to specify which plotter is being used (Arduino or kst2). I think the documentation for this should go in the debug.h file for now since we dont yet have a good place for these kinds of code-related docs.