From de02805873c4e474e910a4ef629b2bfb48c3c429 Mon Sep 17 00:00:00 2001 From: Andy Killorin <37423245+Speedy6451@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:37:02 -0400 Subject: [PATCH] increase loop frequency to 83hz --- lib/Chassis/src/constants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Chassis/src/constants.h b/lib/Chassis/src/constants.h index 7d49d28..435a7d2 100644 --- a/lib/Chassis/src/constants.h +++ b/lib/Chassis/src/constants.h @@ -14,5 +14,5 @@ const float RIGHT_TICKS_PER_CM = 1440.0 / (3.1416 * 4.0); * You can change the control loop period, but you should use multiples of 4 ms to * avoid rounding errors. */ -const uint16_t CONTROL_LOOP_PERIOD_MS = 20; +const uint16_t CONTROL_LOOP_PERIOD_MS = 12; const float CONTROL_LOOP_PERIOD_S = CONTROL_LOOP_PERIOD_MS / 1000.;