Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Allow to publish home position when setting the origin #1000

Closed
wants to merge 7 commits into from

Conversation

ecmnet
Copy link
Contributor

@ecmnet ecmnet commented Apr 6, 2021

Sending a set_gps_global_origin message to EKF2 via MAVLINK sets the NED origin as reported by EKF2 but does not switch to publish global position. This would be helpful in use cases where no GPS is available but LPOS is provided by other means.

Reason for this is, that the flag _NED_origin_initialised is not set to true inEkf::setEkfGlobalOrigin. Doing so in elf_helper.cpp would work as long as the parameter EKF2_DECL_TYPE is set to 0. Otherwise an invalid look up of the magnetic declination results an invalid EKF2_MAG_DECL value.

@ecmnet ecmnet closed this Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant