From bd11e42c81b258d204248f3af0fa8e14dbada2ea Mon Sep 17 00:00:00 2001 From: superpenguin612 <74030080+superpenguin612@users.noreply.github.com> Date: Tue, 5 Nov 2024 21:14:27 -0500 Subject: [PATCH] fix calib --- .../firmware/teensy_main/lib/lunabot_drivers/robot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers/robot.cpp b/lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers/robot.cpp index 23ae1fc7..2cf84b4e 100644 --- a/lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers/robot.cpp +++ b/lunabot_embedded/firmware/teensy_main/lib/lunabot_drivers/robot.cpp @@ -97,9 +97,9 @@ void update(float &d0) { float val1 = HX711_Bus::read_scale(0); float val2 = HX711_Bus::read_scale(1); if (val1 != -1 && val2 != -1) { - d0 = (val1 - 8143500) / -17.222f; + d0 = (val1 - 8143500) / -33.1; } else if (val1 != -1) { - d0 = (val1 - 8143500) / -17.222f; + d0 = (val1 - 8143500) / -33.1; } else if (val2 != -1) { d0 = val2; }