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

Copter: stop changing frame to home when home not set #11067

Closed

Conversation

peterbarker
Copy link
Contributor

This was just a logic fail. Never change frame current-loc frame to home frame if we don't have a home set!

if (ahrs.home_is_set()) {
frame = Location::AltFrame::ABOVE_HOME;
current_loc.set_alt_cm(inertial_nav.get_altitude(),
Location::AltFrame::ABOVE_HOME);
Copy link
Contributor

Choose a reason for hiding this comment

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

this is incorrect, inav always give origin alt

@peterbarker peterbarker deleted the pr/no-home-alt-if-not-set branch May 29, 2019 00:28
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.

None yet

2 participants