reverting to old style print statements for older versions of python
This commit is contained in:
parent
18b4fdc4ea
commit
ee1e7d354e
@ -162,8 +162,11 @@ def calculate(filename, tangentdivisor, showplot):
|
||||
Ki = Kp / Ti
|
||||
Kd = Kp * Td
|
||||
|
||||
# outut to the user
|
||||
print(f"Kp: {Kp} 1/Ki: {1/ Ki}, Kd: {Kd}")
|
||||
# output to the user
|
||||
print("pid_kp = %s" % (Kp))
|
||||
print("pid_ki = %s" % (1 / Ki))
|
||||
print("pid_kd = %s" % (Kd))
|
||||
|
||||
|
||||
if showplot:
|
||||
plot(xdata, ydata,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user