Open mungewell opened 1 year ago
Maybe a naive question: might your measurement have happened faster than the sampling rate @mungewell ?
You haven't said how you've configured the PID, but I suppose that if sample_time
was x
and your measurement happened at time t < x
, then the PID wouldn't have updated the output.
Hi, I am doing some testing and noticed that the internal state did not change after I updated the measurement value, is this normal?
In this data the 1st column is effectively time (HH:MM:SS:FF) and you will notice that I am slowly updating every 60s or so. I have limitations in my system which means I need to slow the PID down for now as I can't adjust the control too quickly... I have plans to improve this soon. 2nd data is the measurement (time delta in us), 3rd is out (adjustment to PIO clock divider)
My control loop is slowed by the speed which I can write data to the OLED screen on my Pico. It is only grabbing a measurement around 3Hz, and also averaging that to remove jitter noise from servicing the interrupts which are used to create timestamp.