This commit is contained in:
Andrew de Quincey 2021-04-30 23:05:24 +01:00
parent 82c2b2bcc7
commit 04e402a04c

View File

@ -83,6 +83,8 @@ def calculate(filename, tangentdivisor, showplot):
# compute parameters
L = lower_crossing_x - min(xdata)
T = upper_crossing_x - lower_crossing_x
# Magic Ziegler-Nicols constants ahead!
Kp = 1.2 * (T / L)
Ti = 2 * L
Td = 0.5 * L