From 8d15da5f42b87a41294f11d78c4420fc8f9c2bb2 Mon Sep 17 00:00:00 2001 From: acki Date: Fri, 13 Mar 2026 13:09:35 +0100 Subject: [PATCH] w range --- Core/Src/modelec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Src/modelec.cpp b/Core/Src/modelec.cpp index dda7680..873fcdb 100644 --- a/Core/Src/modelec.cpp +++ b/Core/Src/modelec.cpp @@ -124,7 +124,7 @@ void DiffBot::update(float dt_actual) pos.theta = normalizeAngle(pos.theta + dTheta); bool commandingMove = (std::abs(motor.leftTarget_PWM) > 50 || std::abs(motor.rightTarget_PWM) > 50); - bool isStationary = (std::abs(vLeftAct) < 0.01f && std::abs(vRightAct) < 0.01f); + bool isStationary = (std::abs(vLeftAct) < 0.001f && std::abs(vRightAct) < 0.001f); if (commandingMove && isStationary) { if (!no_move)