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

Python • Re: PID controller help

$
0
0
How they differ is mine uses the "global" declaration in the threads so those variables can be shared.

The best example is the variable "done". It is used in the main loop as well as each thread. It allows the shutdown of all the threads before closing the program.

You should be able to figure out the rest when you see it run.
thanks, i should have some time this evening to fiddle with it!

Statistics: Posted by Ykdave — Thu Oct 17, 2024 12:10 am



Viewing all articles
Browse latest Browse all 8142

Trending Articles