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: Fix RTL command lnd logic for missions #7249

Merged
merged 1 commit into from
May 16, 2017

Conversation

LorenzMeier
Copy link
Member

The navigator was sending RTL commands in the wrong circumstances leading to a cycle between Navigator and Commander.

The navigator was sending RTL commands in the wrong circumstances leading to a cycle between Navigator and Commander.
@LorenzMeier LorenzMeier requested a review from julianoes May 16, 2017 03:34
@LorenzMeier LorenzMeier added this to the Release v1.6.0 milestone May 16, 2017
Copy link
Contributor

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

Can you explain to me where the RTL mission items are now handled?

@LorenzMeier
Copy link
Member Author

The logic was completely wrong. If you look at the whole file you'll see that what I removed responded to a RTL command, not a mission item. The mission item handling is still in.

@LorenzMeier LorenzMeier merged commit 9be5193 into master May 16, 2017
@LorenzMeier LorenzMeier deleted the pr-rtl-mission-fix branch May 16, 2017 06:40
@julianoes
Copy link
Contributor

Got it, thanks.

@bartslinger
Copy link
Contributor

This seems to disable the back-transition before landing in RTL. However I cannot test it on 1.6.2 or master since I need quite some additional code for my airframe to work.

@dagar
Copy link
Member

dagar commented Jun 12, 2017

@bartslinger can you open a new issue to discuss? We can quickly verify in SITL.

if (!item_contains_position(&_mission_item)) {
issue_command(&_mission_item);
}

Copy link
Member

Choose a reason for hiding this comment

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

@LorenzMeier Removing this breaks the backtransition before landing in rtl on a vtol

Copy link
Member

Choose a reason for hiding this comment

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

LorenzMeier added a commit that referenced this pull request Jun 14, 2017
A recent change removed the command forwarding required for VTOL transitions. This change brings this back.

Partially reverts #7249
@LorenzMeier
Copy link
Member Author

Fix in: #7418

LorenzMeier added a commit that referenced this pull request Jun 15, 2017
A recent change removed the command forwarding required for VTOL transitions. This change brings this back.

Partially reverts #7249
LorenzMeier added a commit that referenced this pull request Jun 17, 2017
A recent change removed the command forwarding required for VTOL transitions. This change brings this back.

Partially reverts #7249
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.

5 participants