Skip to content

Rover: Follow mode odd circling #29786

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

Open
stephendade opened this issue Apr 15, 2025 · 4 comments
Open

Rover: Follow mode odd circling #29786

stephendade opened this issue Apr 15, 2025 · 4 comments
Assignees

Comments

@stephendade
Copy link
Contributor

stephendade commented Apr 15, 2025

When in Follow mode, if the leader vehicle is stationary for some time (20-120sec ... it can vary) the following vehicles will begin circling their offset point:

Image

Can be replicated in SITL with sim_vehicle.py --vehicle=Rover --console --map --count=4 --mavproxy-args='--cmd="set fwdpos True"' --auto-sysid

Then setting for vehicles 2-4:

FOLL_ENABLE=1
FOLL_SYSID=1
FOLL_OFS_X=<any>
FOLL_OFS_Y=<any>

Version
Current master, SITL

Platform
[ ] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[ X] Rover
[ ] Submarine

@stephendade stephendade self-assigned this Apr 15, 2025
@peterbarker
Copy link
Contributor

This feels like the Rovers trying to get somewhere but can't turn that tightly?

@rmackay9
Copy link
Contributor

rmackay9 commented May 1, 2025

I imagine that it's I-term build-up so it might be resolved by perhaps not trying to move if the target is less than the turning radius from the vehicle.

@timtuxworth
Copy link
Contributor

timtuxworth commented May 1, 2025

If it's working the way I think it is, the code is just dropping a WP for the follow vehicle to fly to, it keeps dropping new "pins" ahead as the target moves, so it never catches up, but if the target stops moving the pin will stop moving and standard "loiter at WP" logic kicks in, which is a circle around the point.

On Plane, I found this behavior so annoying that I stopped using it altogether and I'm now directing the follow vehicle using heading, not WP.

@stephendade
Copy link
Contributor Author

Thanks for the ideas!

This had slipped off my radar, but I should be able to investigate further next week.

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

No branches or pull requests

4 participants