Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4801

Python • Re: PID controller help

$
0
0
It took me a while to figure it out.

Maybe this will help. Put this print statement as the very last line of your code where my example prints "All finished"..

Code:

print("Releasing all program, data and stack memory back to the OS")
If you see that while your program is running, it is doomed to crash!
HAHA! thanks, ive added that line with a little extra 'flare' :lol:

So far, dont see it while the code is running! Ive almost got things the way i want it (for now). i have got a bar graph set up so a guy can see a bit of historical data, i would like to tweak that a bit more to show a longer 'history' on the screen (be able to scroll back 1-2hrs worth to see the trends) but for now ive just found a happy medium for the sample rate

Now that i think ive got something i can work with, Im going to play around tonight to try and implement a PID code finally and see if i can get that to work without breaking something else

Statistics: Posted by Ykdave — Fri Nov 01, 2024 1:46 am



Viewing all articles
Browse latest Browse all 4801

Trending Articles