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

EKF2: use timestamp from argument of PublishEvPosBias() #21822

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

sfuhrer
Copy link
Contributor

@sfuhrer sfuhrer commented Jul 8, 2023

Solved Problem

The timestamps of estimator_ev_pos_bias are broken in EKF replay.

Solution

Fill timestamp field with what was passed into PublishEvPosBias() as an argument instead of calling hrt_absolute_time().

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
@sfuhrer sfuhrer requested a review from bresch July 8, 2023 19:41
src/modules/ekf2/EKF2.cpp Outdated Show resolved Hide resolved
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com>
@bresch bresch merged commit 81764c4 into main Jul 11, 2023
81 of 84 checks passed
@bresch bresch deleted the pr-ekf-fix-ev-pos-bias-publish-main branch July 11, 2023 09:07
antbre pushed a commit to BioMorphic-Intelligence-Lab/PX4-Autopilot that referenced this pull request Sep 14, 2023
* EKF2: use timestamp from argument of PublishEvPosBias()

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>

* Update src/modules/ekf2/EKF2.cpp

Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com>

---------

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com>
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