Skip to content
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

fix division by zero bug on robot spec handling #161

Merged
merged 2 commits into from
Apr 27, 2021

Conversation

FelipeMartins96
Copy link
Contributor

Identify the Bug

#160

Description of the Change

Handle the case when acceleration is higher than the limit and sent speed is zero by using the robot current speed as proposed @g3force

Alternate Designs

I tried setting the limits directly to the wheel sent speeds, but this solution is simpler and requires less conversions

Possible Drawbacks

Verification Process

I've tested sending a robot speed for a fixed number of steps, then set the speed to zero. This test was done for different robot angles.

Release Notes

Not applicable

Copy link
Member

@g3force g3force left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I've tested it as well with different orientations and it looks correct.

src/robot.cpp Outdated Show resolved Hide resolved
@g3force g3force merged commit 83b723b into RoboCup-SSL:master Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants