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

navigator: allow mission items with same position (take 2) #14921

Merged
merged 1 commit into from
May 19, 2020

Conversation

julianoes
Copy link
Contributor

@julianoes julianoes commented May 18, 2020

This reverts the addition of a check against mission items that have the same position. This breaks existing MAVSDK implementations where a LOITER_TIME item is set right after a WAYPOINT with the same coordinates. It is an interim hack to allow the vehicle to hold still
during a photo is captured.

This leaves the check in place for gates where we need to be able to calculate the direction between gate and waypoint.

In my opinion this is a compromise between enabling the gate calculations added by the release and not breaking existing MAVSDK (and maybe other) implementations.

For the future I'm open to tightening to specs to disallow waypoints at the same location and making sure the current use cases can be achieved with existing implementations, DELAY, LOITER, as it makes sense.

Alternative to #14910

This reverts the addition of a check against mission items that have the
same position. This breaks existing MAVSDK implementations where a
LOITER_TIME item is set right after a WAYPOINT with the same
coordinates. It is an interim hack to allow the vehicle to hold still
during a photo is captured.

This leaves the check in place for gates where we need to be able to
calculate the direction between gate and waypoint.
@julianoes julianoes requested a review from LorenzMeier May 18, 2020 07:55
@julianoes julianoes merged commit 793eb82 into master May 19, 2020
@julianoes julianoes deleted the pr-fix-same-location branch May 19, 2020 06:51
@bresch bresch mentioned this pull request May 20, 2020
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