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

vehicle_local_position.z return 0 in HITL as global_local_alt0 is reinited #17977

Closed
ghost opened this issue Jul 25, 2021 · 1 comment · Fixed by #18010
Closed

vehicle_local_position.z return 0 in HITL as global_local_alt0 is reinited #17977

ghost opened this issue Jul 25, 2021 · 1 comment · Fixed by #18010
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Jul 25, 2021

z in vehicle_local_position return 0 in HITL mode global_local_alt0 is reinited everytime while decoding HIL_STATE_QUATERNION.

PX4 Firmware: v1.12.0

I was running HITL simulation after upgrading my firmware when I discovered that z is always return 0 in vehicle_local_position. I debugged this issue and found that in mavlink_receiver.cpp while parsing HIL_STATE_QUATERNION in handle_message_hil_state_quaternion, the reference altitude global_local_alt0 is reinited everytime. (line no 2571 in mavlink_receiver.cpp )

This bug seems to have to have crept in this commit

@dagar
Copy link
Member

dagar commented Aug 2, 2021

Please try #18010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant