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

Improve range finder fault detection at low vertical speed #23878

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

bresch
Copy link
Member

@bresch bresch commented Nov 1, 2024

Solved Problem

When the height above ground (HAGL) estimate is low, the drone will usually decelerate and then the check would run anymore (default of MPC_LAND_CRWL is 0.3m/s and the kinematic consistency checks runs when > 0.5m/s). If the low HAGL estimate is due to bad sensor readings (e.g.: reflections), it will be stuck in that state.

Solution

Allow invalidating the kinematic consistency at any vertical speed but only validate if there is a significant vertical speed (the latter condition is the same as before).

@bresch bresch added the EKF2 label Nov 1, 2024
@bresch bresch requested a review from dagar November 1, 2024 09:48
@bresch bresch self-assigned this Nov 1, 2024
@bresch bresch force-pushed the pr-ekf2_range_kin_low_speed branch from 6abbeb6 to 742084c Compare November 1, 2024 10:12
@haumarco
Copy link
Contributor

haumarco commented Nov 4, 2024

Can you check on the CI flash failure. Otherwise it looks good.

The issue is that when the HAGL is low, the drone will usually
decelerate and then the check would run anymore. If the low HAGL
estimate is due to bad sensor readings (e.g.: reflections), it will be
stuck in that state.
@bresch bresch force-pushed the pr-ekf2_range_kin_low_speed branch from 742084c to 7520b30 Compare November 4, 2024 11:32
@DronecodeBot
Copy link

This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-sync-q-a-nov-6-2024/42264/1

@sfuhrer
Copy link
Contributor

sfuhrer commented Nov 5, 2024

CI flash issue is already present without this PR, thus not blocking the merge.

@sfuhrer sfuhrer merged commit aa5fdd3 into main Nov 5, 2024
54 of 56 checks passed
@sfuhrer sfuhrer deleted the pr-ekf2_range_kin_low_speed branch November 5, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants