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

    Unable to setup VIO on external flight controller

    Ask your questions right here!
    vio external fc position-mode voxl2
    3
    7
    532
    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.
    • KevinChanK
      KevinChan
      last edited by

      Unable to setup VIO on external flight controller.
      I have set up and received Mavlink odometry message from Voxl 2.
      I have also set up the EKF2_AID_MASK value to 280.
      But I am still unable to switch to position mode with the error code "check for position estimate"

      POSITION_TARGET_LOCAL_NED xyz values are nan.
      What am I missing?
      Thank you~

      e0631970-6055-4ed9-a6ac-993921d6426e-image.png

      1 Reply Last reply Reply Quote 0
      • Chad SweetC
        Chad Sweet ModalAI Team
        last edited by

        In our troubleshooting VIO guide here, it says:

        If LOCAL_POSITION_NED and MAVLink Odometry message are reading 0 for X and Y after movement of the robot, it is likely PX4’s EKF2 is set to require a magnetomter to initialize.

        PX4 1.12 and later have the following parameters which enable using VIO without a magnetometer:

        ## disable mag
        SYS_HAS_MAG	0
        EKF2_MAG_TYPE	5
        
        KevinChanK 1 Reply Last reply Reply Quote 0
        • KevinChanK
          KevinChan
          last edited by KevinChan

          @Chad-Sweet said in Unable to setup VIO on external flight controller:

          EKF2_MAG_TYPE 5

          I have set both parameters.
          I have also set EKF2_HGT_MODE to vision.
          And it's still not working 😞

          In fact, LOCAL_POSITION_NED is nowhere to be found in mavlink, only POSITION_TARGET_LOCAL_NED, are they the same?
          I am currently using PX4 1.13.3
          Thank you for your swift reply~

          1 Reply Last reply Reply Quote 0
          • KevinChanK
            KevinChan @Chad Sweet
            last edited by

            @Chad-Sweet After about a week of debugging, turns out external flight controller only works on the older version of firmware, VOXL2 Platform 0.9.
            Instead of the newest one VOXL2 Platform 1.3.1-0.8 or VOXL2 Platform 1.2.1-0.7.
            PLEASE state it in your documentation!
            I initially need to install the 1.2 version since I need to communicate with VOXL2 IO
            Thank you

            1 Reply Last reply Reply Quote 0
            • Chad SweetC
              Chad Sweet ModalAI Team
              last edited by

              Thank you for bringing this to our attention. There could be a regression. Our latest platform image is 0.9.5 which corresponds to system image 1.5.5 . Can you please help clarify which version you found not to work? Maybe there is a mismatch with what you are trying to achieve?

              https://docs.modalai.com/voxl2-system-image/#155-platform-release-095

              KevinChanK 1 Reply Last reply Reply Quote 0
              • KevinChanK
                KevinChan @Chad Sweet
                last edited by

                @Chad-Sweet Platform 1.3.1-0.8 and Platform 1.2.1-0.7 doesn't work, 0.9.5 works. Didn't try 0.9

                1 Reply Last reply Reply Quote 0
                • tomT
                  tom admin
                  last edited by

                  @KevinChan 0.9.5 is the newest, 0.9 is second newest, 1.3.1-0.8 (0.8) is super old. We changed our naming scheme some time ago so I can understand the confusion

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