-
Notifications
You must be signed in to change notification settings - Fork 24
plotter function reference
Dlloydev edited this page Feb 1, 2022
·
5 revisions
The plotter function provides some control over when and how to display results on the serial plotter.
void plotter(float setpoint, float outputScale = 0.5, uint8_t everyNth = 5, bool average = false);-
setpointparameter sets the setpoint value for the plotter -
outputScaleis used to shrink or expand the output range so that can displayed without adversely affecting the y-axis auto scaling. For example,outputScale = 0.5will vertically shrink the output trace by 50% -
everyNthwill plot every n samples, which compresses the x-axis in order to completely view the full test. -
The
averageparameter when settruewill print the average of the input values from the buffer. Whenfalse, the instantaneous input values are used.

