Last active
September 3, 2022 16:12
-
-
Save curlyz/3a4d067df5cc0d1f57f5623cc5b19e7f to your computer and use it in GitHub Desktop.
test_thread.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import _thread | |
def pid_routine(): | |
global kp | |
global ki | |
global kd | |
while True: | |
# calculate here | |
pass | |
_thread.start_new_thread(pid_routine,()) | |
# Putty | |
kp = 1 | |
ki = 0 | |
kd = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment