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

Fix bug Auto Land #12032

Merged
merged 1 commit into from
May 24, 2019
Merged

Fix bug Auto Land #12032

merged 1 commit into from
May 24, 2019

Conversation

mrivi
Copy link
Contributor

@mrivi mrivi commented May 17, 2019

While working with Auto Land, I realized the position lock was reset at every iteration thus not actually locking the position when the current latitude and longitude aren't valid.

EDIT: the other weird thing in auto land is this line https://github.com/PX4/Firmware/blob/master/src/lib/FlightTasks/tasks/Auto/FlightTaskAuto.cpp#L189

it sets _triplet_target z to the reference_altitude since the triplet altitude is 0

Test data / coverage
SITL logs

before PR
beforePR
after PR
afterPR

Copy link
Contributor

@RomanBapst RomanBapst left a comment

Choose a reason for hiding this comment

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

@mrivi From what I can tell this looks good. @Stifael Could you also have a look please?

@mrivi
Copy link
Contributor Author

mrivi commented May 24, 2019

@dagar @RomanBapst @Stifael - can we get this in?

@Stifael
Copy link
Contributor

Stifael commented May 24, 2019

Yep, the reset didn't make much sense

@mrivi
Copy link
Contributor Author

mrivi commented Jun 12, 2019

@dagar

@dagar
Copy link
Member

dagar commented Jun 12, 2019

Backported to v1.9. 413acc5

@dagar dagar deleted the fix_bug_land branch June 12, 2019 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants