From 30795ca1ea48e4c42647bea5a9ca5fb4d6f07c4c Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Mon, 19 Sep 2022 15:57:30 +0200 Subject: [PATCH] :sparkles: --- calibrate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calibrate.py b/calibrate.py index 97eb55a..3348871 100644 --- a/calibrate.py +++ b/calibrate.py @@ -86,10 +86,10 @@ def main(): cpr = 3.1415*38 # 1 rotation in cm # milliseconds per 10 degrees clockwise - time[2] = int((1000 * cpc)/(cps[2] * 36)) + time[2] = int((1000 * cpr * cpc)/(cps[2] * 36)) # milliseconds per 10 degrees anticlockwise - time[3] = int((1000 * cpc)/(cps[3] * 36)) - + time[3] = int((1000 * cpr * cpc)/(cps[3] * 36)) + print(cps) values_hex = "-".join([".".join([str(i) for i in v]) for v in values]) time_hex = "-".join([str(i) for i in time])