• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
ModalAI Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
    • Register
    • Login

    Mavros/local_position/odom Z-Axis drift

    Ask your questions right here!
    4
    6
    504
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      Kashish Garg
      last edited by 19 Feb 2024, 23:03

      Hello, we are running into an issue where the qvio-server doesn't match with the odometry msgs published on /mavros/local_position/odom on the Starling platform.
      I have run plotted the qvio and mavros/local_position odometries over time and there is an extensive divergence with the platform completely still
      bacfb1df-84c6-43c1-aaf7-29f43e5dd6a8-image.png

      K 1 Reply Last reply 20 Feb 2024, 21:39 Reply Quote 1
      • K
        Kashish Garg @Kashish Garg
        last edited by 20 Feb 2024, 21:39

        @Kashish-Garg Just bumping to get a hand with this. i have tried disabling Baro sensors and playing with enabling/disabling other sensors. Its clear the mavros/vision/pose is accurate, but on the z-axis in local_position is drifting/showing significant error. Any help is greatly appreciated!

        M 1 Reply Last reply 21 Feb 2024, 16:48 Reply Quote 1
        • M
          Moderator ModalAI Team @Kashish Garg
          last edited by 21 Feb 2024, 16:48

          @Kashish-Garg Does it fly properly without your code in manual and position modes? What does local_position report in QGC when you fly?

          Are you waiting a long time before taking off? What if you fly first to let EKF2 converge?

          We don't have enough information to help you, you'll need to start with first principles to debug the system

          R 1 Reply Last reply 23 Feb 2024, 13:03 Reply Quote 0
          • R
            Riccardo Franceschini @Moderator
            last edited by 23 Feb 2024, 13:03

            Hi @Moderator and @Kashish-Garg, we have noticed a similar behavior involving a discrepancy between the qvio server and /mavros/local_position/pose on the z-axis. We have attempted to resolve this by disabling and re-enabling the barometer sensor, but the issue persists. The inconsistency does not always occur and does not appear to be related to aggressive flight behaviors.

            K 1 Reply Last reply 14 Mar 2024, 15:38 Reply Quote 0
            • Z
              Zachary Lowell 0 ModalAI Team
              last edited by 23 Feb 2024, 18:46

              Is this indoor our outdoor flight? If you are running indoors, then the barometer should not be the main item used for ekf2_hgt_mode in PX4 and vision should be the detector for height source.

              Can you attach an altimeter like a benewake lidar or something that is very bare metal and have that sensor become the range finder in the px4 instance?

              Zach

              1 Reply Last reply Reply Quote 0
              • K
                Kashish Garg @Riccardo Franceschini
                last edited by 14 Mar 2024, 15:38

                @Riccardo-Franceschini We were not able to resolve this issue. However because our control stack is sending TRPY commands to mavros, this didn't come into play at all. The concern for us originated when the drone was taking off significantly higher than commanded. It turned out the propeller coefficients we received from ModalAI were insufficient.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB | Contributors