oresat / oresat-cfc-software

Cirrrus Flux Camera software repository
GNU General Public License v3.0
0 stars 0 forks source link

TEC PID controller plots #2

Closed ryanpdx closed 8 months ago

ryanpdx commented 9 months ago

I would be nice to see a live plots of the PID controller on a CFC webpage.

This should include a one plot for the current, setpoint, and saturated temperatures. Another plot for the PID output value (aka duty cycle for the PWM pin).

Use matplotlib to generate a jpg that can be fetch thru the REST API.

The data for plots should be cleared on each TEC controller disable to enable transition.

Add a new webpage to fetch and diplay the "new" plots jpg every second.

Bonus points if there is a flag to enable saving the plot data to a csv file and adding it to the fread cache.