Skip to content

Instantly share code, notes, and snippets.

@curlyz
Last active September 3, 2022 16:12
Show Gist options
  • Save curlyz/3a4d067df5cc0d1f57f5623cc5b19e7f to your computer and use it in GitHub Desktop.
Save curlyz/3a4d067df5cc0d1f57f5623cc5b19e7f to your computer and use it in GitHub Desktop.
test_thread.py
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