-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Conversation
The navigator was sending RTL commands in the wrong circumstances leading to a cycle between Navigator and Commander.
There was a problem hiding this 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?
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. |
Got it, thanks. |
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. |
@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); | ||
} | ||
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A recent change removed the command forwarding required for VTOL transitions. This change brings this back. Partially reverts #7249
Fix in: #7418 |
A recent change removed the command forwarding required for VTOL transitions. This change brings this back. Partially reverts #7249
A recent change removed the command forwarding required for VTOL transitions. This change brings this back. Partially reverts #7249
The navigator was sending RTL commands in the wrong circumstances leading to a cycle between Navigator and Commander.