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 not fusing the Rangefinder #12247

Closed
JMshare opened this issue Jun 11, 2019 · 8 comments
Closed

EKF2 not fusing the Rangefinder #12247

JMshare opened this issue Jun 11, 2019 · 8 comments

Comments

@JMshare
Copy link

JMshare commented Jun 11, 2019

Describe the bug
The estimated altitude and the local_position.z seem to ignore the rangefinder data.
Using the Lidar Lite through PWM,
Pixhawk 4 fmu_v5,
stable release 1.9.0,
quadrotor_x in position control or altitude hold mode.

The distance sensor data show that the sensor outputs correct readings but the altitude estimates seem uninfluenced.

Log Files and Screenshots
https://review.px4.io/plot_app?log=d19babaf-06b4-4074-b14e-af8828fb51c2

Add screenshots to help explain your problem.
Screenshot 2019-06-11 at 20 51 47

@JMshare JMshare changed the title EKF2 not merging the Rangefinder EKF2 not fusing the Rangefinder Jun 11, 2019
@gajena
Copy link

gajena commented Jul 18, 2019

@JMshare Did you find any solution for this? I am also having the same problem with fmu_v3 and LidarLite.

@JMshare
Copy link
Author

JMshare commented Jul 18, 2019

No, I don't really know how to fix this, hoped someone from the developers would react.

But if it helps to track the issue, the reported signal_quality 0 in the log must be the reason why the ekf ignores the data. Also I remember somehow coming to a conclusion that this is related to LidarLite specifically, not just any rangefinder. The newest model had some changes in the firmware that haven't been accounted for in the PX4 yet or something like that...

@gajena
Copy link

gajena commented Jul 18, 2019

I have tested the same LiDaR with v1.8.1, and it was working fine. So after digging in the firmware, I found the heck.AerialRobotics-IITK@25e0d01

@JMshare
Copy link
Author

JMshare commented Jul 19, 2019

Thanks @gajena, I was thinking about doing the same thing until the driver is fixed.

@DanAbara
Copy link
Contributor

DanAbara commented Sep 3, 2019

@gajena sorry if the question is silly but i'm quite new to px4 and all, so how do I make use of the hack?

  • Modify the 'ekf2_main.cpp' file as per the hack from the link you gave
  • build the firmware, and load as custom firmware.
    Am I right ?
    Thanks for your help.

@gajena
Copy link

gajena commented Sep 4, 2019

Yes or just pull from my repo(please pull latest commit).

@DanAbara
Copy link
Contributor

DanAbara commented Sep 4, 2019

Yes or just pull from my repo(please pull latest commit).

Thank you @gajena

@stale
Copy link

stale bot commented Dec 3, 2019

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Dec 3, 2019
@bresch bresch closed this as completed Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants