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

Rover: Update crash_check.cpp to remove stuck check for boat #29125

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agregghai
Copy link

It is possible for a boat to have a very low GPS speed but be healthy (not stuck) as it fights a strong current. This commit removes the "stuck" check if the type is a boat.

@rmackay9
Copy link
Contributor

Hi @agregghai,

Thanks for looking into this. The Rover crash check was designed some time ago when the code was much simpler than it is today. I guess you're seeing false positives where the vehicle is being switched into Hold mode?

Instead of just disabling the check I wonder if we could improve the velocity check by pulling it from the position controller. Another idea is to add CRASH_xxx parameters which allow the user to set some of the values instead of using hard-coded values

@rmackay9 rmackay9 added the Rover label Jan 23, 2025
@agregghai
Copy link
Author

agregghai commented Jan 25, 2025 via email

@rmackay9
Copy link
Contributor

rmackay9 commented Jan 27, 2025

Hi @agregghai,

My concern is that if we simply disable the crash check the motors won't turn off when the boat is beached. I also think that in practice it will be very difficult for a moving vehicle to have its velocity stay below 0.1 m/s for 2 seconds. There will be too much noise in the estimated velocity for this to actually happen.

To move forward on this, I think we need a real case where it's happening. That could be an actual vehicle or in a simulator

BTW, we also have this Auto mode problem if the boat is in extremely strong current

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants