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

    Gaining VIO altitude estimates only in one direction

    Ask your questions right here!
    3
    7
    271
    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.
    • H
      hmlow
      last edited by 26 Jun 2022, 00:15

      Hi devs,

      Im stumped and really need help.
      I've shifted all the hardware from a Seeker into my own airframe, and have done the following:
      -configured the extrinsics
      -re-calibrated IMU
      -re-calibrated tracking camera
      -the new airframe flies well in Manual/Stabilized mode

      I have yet to switch to Position mode because - while on the ground (motors not spinning; no vibration etc), when i move the aircraft in the positive x-direction (reference frame where the VIO initializes - pointing fwd towards the nose of the aircraft), the z-position estimate decreases (ie it thinks it is gaining altitude).

      The same phenomenon happens regardless of the aircraft's orientation/heading as long as i move towards the x-direction. The Z position estimate moves by -0.3m for approximately 5m moved in X direction. X and Y positions are estimated correctly

      As i move back towards the starting pt (negative x-direction), the change in z-position estimate reverses and it goes back to 0 (almost) at the starting point. Again, this is regardless of the aircraft orientation.

      Im stuck... help needed and appreciated.

      Thanks

      1 Reply Last reply Reply Quote 0
      • H
        hmlow
        last edited by 26 Jun 2022, 00:19

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • C
          Chad Sweet ModalAI Team
          last edited by 26 Jun 2022, 00:46

          Just FYI, on our reference platforms as altitude increases, z decreases as well. We just rotate it in voxl-vision-px4. Check out this blog post here: https://www.modalai.com/blogs/blog/how-to-autonomously-navigate-with-px4

          H 1 Reply Last reply 26 Jun 2022, 02:20 Reply Quote 0
          • H
            hmlow @Chad Sweet
            last edited by 26 Jun 2022, 02:20

            @Chad-Sweet actually what I meant was when I moved the aircraft purely in the X direction, the Z estimates decreases.

            Sorry if I wasn't clear

            1 Reply Last reply Reply Quote 0
            • H
              hmlow
              last edited by 29 Jun 2022, 07:49

              Hi... any of the devs have an idea of what i might have misconfigured?

              I've just set up another brand new set of VOXL and tracking camera and im facing the same problem.

              Since the issue is systemic, it could be some misconfiguration but i cant figure out what i might have done wrongly

              1 Reply Last reply Reply Quote 0
              • J
                James Strawson ModalAI Team
                last edited by 30 Jun 2022, 04:39

                How is the VOXL oriented on the new airframe, is it the same as on the seeker?

                voxl-qvio-server is only aware of the relation between the imu and tracking camera, and as such outputs its odometry relative to how the IMU is orientated when it starts up, even if that's crooked or upside-down. It also outputs an estimate of the gravity vector in that frame which voxl-vision-px4 then uses to try to correct for any tilt the drone may have when it started up using the imu-to-body relation in the extrinsics config file. If the voxl board is oriented differently on the drone body compared with seeker then that entry in the extrinsics config file will need to be updated too.

                To see the raw output of voxl-qvio-server before the gravity and orientation corrections are done, you can run voxl-inspect-qvio. This should output position in XYZ relative to how the IMU was oriented then the drone starts up which in the case of Seeker is crooked due to the front legs.

                voxl-inspect-pose -l will output the corrected orientation that's sent to PX4.

                H 1 Reply Last reply 30 Jun 2022, 16:40 Reply Quote 0
                • H
                  hmlow @James Strawson
                  last edited by 30 Jun 2022, 16:40

                  @James-Strawson ah I get it now. There was nothing wrong at all, it was all about reference frames. I should be looking at voxl-inspect-pose -l instead.

                  Thanks!

                  1 Reply Last reply Reply Quote 0
                  1 out of 7
                  • First post
                    1/7
                    Last post
                  Powered by NodeBB | Contributors