From 04e402a04c6718008b9711462533c8b9a7d31669 Mon Sep 17 00:00:00 2001 From: Andrew de Quincey Date: Fri, 30 Apr 2021 23:05:24 +0100 Subject: [PATCH] comments --- zieglernicols.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zieglernicols.py b/zieglernicols.py index 82abece..8194bad 100644 --- a/zieglernicols.py +++ b/zieglernicols.py @@ -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