This commit is contained in:
acki
2026-03-13 13:09:35 +01:00
parent 3122eba862
commit 8d15da5f42

View File

@@ -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)