reverting to old style print statements for older versions of python

This commit is contained in:
Jason Bruce 2021-06-08 10:21:44 -04:00
parent 18b4fdc4ea
commit ee1e7d354e

View File

@ -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,