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

Collision prevention velocity limitations also based on max accel/jerk #12824

Merged
merged 3 commits into from
Sep 2, 2019

Conversation

jkflying
Copy link
Contributor

@jkflying jkflying commented Aug 28, 2019

Describe problem solved by the proposed pull request
Until now the collision prevention assumed that the vehicle could follow the tuning of the velocity controller. However, it is possible to have a tightly tuned velocity controller, with a very limiting max jerk/accel on top.

Describe your preferred solution
The Collision prevention now takes the more conservative of the tuning parameters (both smooth and non-smooth) when limiting velocity for a given braking distance. It uses the same method as the smooth auto velocity controller to limit speeds given available braking distances.

@baumanta could you please SITL test

@bresch FYI

Todo:

  • unit tests

@jkflying jkflying requested a review from baumanta August 28, 2019 12:29
Copy link
Member

@bresch bresch 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. @baumanta can we have some flight tests please?

@baumanta
Copy link
Contributor

SITL tests looked fine. But it seems we have some more general issues with the collision prevention right now. Even master breaks way too late. We should probably investigate what changed first

@baumanta
Copy link
Contributor

baumanta commented Sep 2, 2019

Issues fixed, they were on the avoidance side. We flew this PR today, it did not significantly improve the behavior but there was also no regression. I would be fine with merging it as it is the theoretically correct thing to do.

@jkflying jkflying merged commit bc58bed into master Sep 2, 2019
@jkflying jkflying deleted the col-prev-max-jerk branch September 2, 2019 12:54
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.

3 participants