This commit is contained in:
2018-11-23 08:42:01 +01:00
parent c6cd6123b0
commit bf5d1b8d7c
32 changed files with 1961 additions and 20 deletions

17
script/test/TestPID.py Normal file
View File

@@ -0,0 +1,17 @@
PID = get_context().getClassByName("PID")
pid=PID(1,1,1);
while True:
sensor = sin.read()
target = 30.0
#set some sort of target value
output=pid.getOutput(sensor,target);
print output
#do something with the output
inp.write(output)
time.sleep(1.0)