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 offboard position control doesn't work with px4 firmware 1.9.2 #12476

Closed
NicolasZhuChen opened this issue Jul 14, 2019 · 6 comments
Closed
Labels

Comments

@NicolasZhuChen
Copy link

Expected behavior
The goal is to do offboard position control, simply to make the quad take off from the groud to a set point (0,0,0.5) and hover. But it failed.
Log Files and Screenshots
https://dev.px4.io/v1.9.0/en/ros/external_position_estimation.html
image
The .ulg file is shown here.
https://logs.px4.io/plot_app?log=e9b8b3cb-be93-4ef5-973c-5f1e553b19a3

  1. I updated the latest px4 firmware 1.9.2 through QGC. The pixhawk is fmu-v2, I use a companion compute board insatlled ros kinetic and mavros. And I'm trying to do offboard control indoor with vicon device.
  2. As the screenshot shows, I publish the vicon data to the mavros/vision_pose/pose topic, and the left window shows the data with commander line: rostopic echo mavros/vision_pose/pose, the middle window shows the data with commander line: rostopic echo mavros/local_position/pose, and the right window is the QGC analyzer, and the three sets of position data is consistent. So I think I set the EKF2 parameters in QGC right based on this
  3. After I keep publishing data through the topic mavros/vision_pose/pose and run the script which continues to publish the waypoint to the topic /mavros/setpoint_position/local, I can change the drone to the offboard mode by using QGC, when the drone is in offboard mode, it just takes off and seems not be able to reach the fixed point and hover, which should be the position (0,0,0.5) as I set in my code, it just drifted away in one direction, and seems to rise up constantly. I also tried the code here, https://github.com/mzahana/px4_indoor_navigation/blob/master/scripts/px4_offbaord_test.py
    and it has the same results and can not hold position. I tuned the yaw rate controller PID, roll and pitch controller PID and they are fine. But I don't know whether this is a firmware issue or I need to tune the position controller PID.
@julianoes
Copy link
Contributor

@EvanAndE thanks for the detailed issue. Let me ping @bresch and @MaEtUgR.

@stale
Copy link

stale bot commented Oct 16, 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 Oct 16, 2019
@julianoes
Copy link
Contributor

Also mentioning @Jaeyoung-Lim.

@stale stale bot removed the stale label Oct 17, 2019
@Jaeyoung-Lim
Copy link
Member

@EvanAndE I believe this is not a problem related to offboard control, but more likely that the external vision input you are providing leads to a wrong estimated position of the vehicle. Have you checked all the frames and EKF_AID_MASK set correctly as done in this Documentation?

@stale
Copy link

stale bot commented Jan 19, 2020

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 Jan 19, 2020
@Jaeyoung-Lim Jaeyoung-Lim reopened this Oct 25, 2021
@stale stale bot removed the stale label Oct 25, 2021
@bresch
Copy link
Member

bresch commented Aug 15, 2022

No answers, closing

@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
Labels
Projects
None yet
Development

No branches or pull requests

4 participants