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

Python • Re: PID controller help

$
0
0
No laughing. It looks like a good try.

I see no main loop. It looks like it will start the threads, then close the program.

I see only one shared variable in the two new threads. Basically those threads won't do anything. The thread3_function computes a value for the current_temp variable, but doesn't share that value since it isn't declared as global, so it will be unused. It will remain a local variable.

I normally use pygame for the GUI interface, but I'll see what I can do.

It will be a couple hours before I can get started.

Statistics: Posted by SurferTim — Sat Oct 19, 2024 6:51 am



Viewing all articles
Browse latest Browse all 5335

Trending Articles