Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Mavros/local_position/odom Z-Axis drift

Mavros/local_position/odom Z-Axis drift

Scheduled Pinned Locked Moved Ask your questions right here!
6 Posts 4 Posters 1.4k Views 1 Watching
  • 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.
  • Kashish GargK Offline
    Kashish GargK Offline
    Kashish Garg
    wrote on last edited by
    #1

    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

    Kashish GargK 1 Reply Last reply
    1
    • Kashish GargK Kashish Garg

      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

      Kashish GargK Offline
      Kashish GargK Offline
      Kashish Garg
      wrote on last edited by
      #2

      @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!

      ModeratorM 1 Reply Last reply
      1
      • Kashish GargK Kashish Garg

        @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!

        ModeratorM Offline
        ModeratorM Offline
        Moderator
        ModalAI Team
        wrote on last edited by
        #3

        @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

        Riccardo FranceschiniR 1 Reply Last reply
        0
        • ModeratorM Moderator

          @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

          Riccardo FranceschiniR Offline
          Riccardo FranceschiniR Offline
          Riccardo Franceschini
          Contributor
          wrote on last edited by
          #4

          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.

          Kashish GargK 1 Reply Last reply
          0
          • Zachary Lowell 0Z Offline
            Zachary Lowell 0Z Offline
            Zachary Lowell 0
            ModalAI Team
            wrote on last edited by
            #5

            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
            0
            • Riccardo FranceschiniR Riccardo Franceschini

              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.

              Kashish GargK Offline
              Kashish GargK Offline
              Kashish Garg
              wrote on last edited by
              #6

              @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
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              ModalAI
              Categories Recent Tags ModalAI.com Docs
              © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups