Switch to 5ms loops since we are only on CAN
CAN runs at a 5ms sample loop, there's no reason to run our loops at the
PWM rate since we have no PWM motors. This aligns wakeups a lot better
with CAN and reduced CPU load rather significantly.
Change-Id: I289792b732878c32b5e6a6ef931dfa5c8528a98a
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2024/control_loops/python/drivetrain.py b/y2024/control_loops/python/drivetrain.py
index 282b146..b52f70d 100644
--- a/y2024/control_loops/python/drivetrain.py
+++ b/y2024/control_loops/python/drivetrain.py
@@ -28,6 +28,7 @@
force=True,
kf_q_voltage=1.0,
controller_poles=[0.82, 0.82],
+ dt=0.005,
)