-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible division by zero on robot speed handling causing crashes #160
Comments
oh, sry... I've missed that. 🤦 I can prepare a patch in the next days or if you like, you can also provide a patch yourself via Pull Request. |
I've tried some solutions, but they haven't worked so far, I'll try testing other ideas later |
Could you test the following fix?
|
it didn't work properly, I think it is because cvv is in global coordinates while vx and vy are local, I'll try converting it |
I think this fix works |
grSim/src/robot.cpp
Lines 472 to 473 in 206c8dc
How to reproduce:
Send v_x and v_y zero to a robot with current speed > AccBrakeAbsoluteMax * delta_t
The text was updated successfully, but these errors were encountered: