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. voxl 2 external rangefinder compatibility

voxl 2 external rangefinder compatibility

Scheduled Pinned Locked Moved Ask your questions right here!
7 Posts 2 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.
  • J Offline
    J Offline
    jon
    Regular
    wrote on last edited by
    #1

    I am trying to find the best solution for minimizing altitude drift during low altitude outdoor VIO navigation. I have read this documentation about VL53L1X rangefinders, but I really would prefer not having to set this up as it would require modifying our drones to accommodate the tracking & hires cameras specific to the kits that come with the M0173 board.

    Is it possible to connect a VL53L1X rangefinder to port J19 and interact with the sensor through the px4 firmware? Looking through the voxl branched 1.14 firmware there seems to be drivers for the VL53L1X sensor. I know it's not possible to use voxl-rangefinder-server through J19 as the page I linked says, but I see no reason I can't use the port through px4 itself.

    Also, would the process (if possible) simply be:

    1. Connect the VL53L1X sensor
    2. Assuming the sensor connects properly, modify EKF2_HGT_REF to prioritize rangefinder

    Or are there any intermediate steps? I am not really sure if these drivers run automatically or if you have to enable them via certain parameters. For example, SENS_EN_VL53L1X, which should enable the driver on boot, is not visible by default.

    Thanks!

    J 1 Reply Last reply
    1
    • J jon

      I am trying to find the best solution for minimizing altitude drift during low altitude outdoor VIO navigation. I have read this documentation about VL53L1X rangefinders, but I really would prefer not having to set this up as it would require modifying our drones to accommodate the tracking & hires cameras specific to the kits that come with the M0173 board.

      Is it possible to connect a VL53L1X rangefinder to port J19 and interact with the sensor through the px4 firmware? Looking through the voxl branched 1.14 firmware there seems to be drivers for the VL53L1X sensor. I know it's not possible to use voxl-rangefinder-server through J19 as the page I linked says, but I see no reason I can't use the port through px4 itself.

      Also, would the process (if possible) simply be:

      1. Connect the VL53L1X sensor
      2. Assuming the sensor connects properly, modify EKF2_HGT_REF to prioritize rangefinder

      Or are there any intermediate steps? I am not really sure if these drivers run automatically or if you have to enable them via certain parameters. For example, SENS_EN_VL53L1X, which should enable the driver on boot, is not visible by default.

      Thanks!

      J Offline
      J Offline
      jon
      Regular
      wrote on last edited by
      #2

      @jonathankampia Just to respond to my own post here in case anyone else has the same question: It does work! We hooked up a VL53L0X rangefinder to the QUP3 i2c ports in the J19 connector and were able to start the driver with no issues by adding the start command to the voxl-px4.conf file. Interestingly, you have to modify both the EKF2_HGT_REF parameter and a specific rangefinder priority parameter that controls whether rangefinder sensor fusion is enabled at all times or just conditionally. If it's just enabled conditionally, the rangefinder data does not fuse into the EKF2 local position estimator.

      Gary HolmgrenG 3 Replies Last reply
      3
      • J jon

        @jonathankampia Just to respond to my own post here in case anyone else has the same question: It does work! We hooked up a VL53L0X rangefinder to the QUP3 i2c ports in the J19 connector and were able to start the driver with no issues by adding the start command to the voxl-px4.conf file. Interestingly, you have to modify both the EKF2_HGT_REF parameter and a specific rangefinder priority parameter that controls whether rangefinder sensor fusion is enabled at all times or just conditionally. If it's just enabled conditionally, the rangefinder data does not fuse into the EKF2 local position estimator.

        Gary HolmgrenG Offline
        Gary HolmgrenG Offline
        Gary Holmgren
        Regular
        wrote on last edited by
        #3

        @jonathankampia Brilliant! thankyou for figuring this out.

        1 Reply Last reply
        0
        • J jon

          @jonathankampia Just to respond to my own post here in case anyone else has the same question: It does work! We hooked up a VL53L0X rangefinder to the QUP3 i2c ports in the J19 connector and were able to start the driver with no issues by adding the start command to the voxl-px4.conf file. Interestingly, you have to modify both the EKF2_HGT_REF parameter and a specific rangefinder priority parameter that controls whether rangefinder sensor fusion is enabled at all times or just conditionally. If it's just enabled conditionally, the rangefinder data does not fuse into the EKF2 local position estimator.

          Gary HolmgrenG Offline
          Gary HolmgrenG Offline
          Gary Holmgren
          Regular
          wrote on last edited by
          #4

          @jonathankampia said in voxl 2 external rangefinder compatibility:

          @jonathankampia Just to respond to my own post here in case anyone else has the same question: It does work! We hooked up a VL53L0X rangefinder to the QUP3 i2c ports in the J19 connector and were able to start the driver with no issues by adding the start command to the voxl-px4.conf file. Interestingly, you have to modify both the EKF2_HGT_REF parameter and a specific rangefinder priority parameter that controls whether rangefinder sensor fusion is enabled at all times or just conditionally. If it's just enabled conditionally, the rangefinder data does not fuse into the EKF2 local position estimator.

          I have been playing aorund with this and connected the VL53L1X to the J19 i2c but no luck yet. I have modified the parameters for EKF2_HGT, and EKF2_RNG_CTL. I am curious how you added the start command to the voxl-px4.conf file. was it just

          DISTANCE_SENSOR=VL53L1X

          or something like

          param set SENS_EN_VL53L1X 1

          I was able to use QGC to to enable the SENS_EN_VL53L1X.

          Not sure what else there could be but maybe I am missing a step. Also, I am using the Holybro VL53L1x found here

          Any help would be appricated!

          Gary HolmgrenG 1 Reply Last reply
          0
          • Gary HolmgrenG Gary Holmgren

            @jonathankampia said in voxl 2 external rangefinder compatibility:

            @jonathankampia Just to respond to my own post here in case anyone else has the same question: It does work! We hooked up a VL53L0X rangefinder to the QUP3 i2c ports in the J19 connector and were able to start the driver with no issues by adding the start command to the voxl-px4.conf file. Interestingly, you have to modify both the EKF2_HGT_REF parameter and a specific rangefinder priority parameter that controls whether rangefinder sensor fusion is enabled at all times or just conditionally. If it's just enabled conditionally, the rangefinder data does not fuse into the EKF2 local position estimator.

            I have been playing aorund with this and connected the VL53L1X to the J19 i2c but no luck yet. I have modified the parameters for EKF2_HGT, and EKF2_RNG_CTL. I am curious how you added the start command to the voxl-px4.conf file. was it just

            DISTANCE_SENSOR=VL53L1X

            or something like

            param set SENS_EN_VL53L1X 1

            I was able to use QGC to to enable the SENS_EN_VL53L1X.

            Not sure what else there could be but maybe I am missing a step. Also, I am using the Holybro VL53L1x found here

            Any help would be appricated!

            Gary HolmgrenG Offline
            Gary HolmgrenG Offline
            Gary Holmgren
            Regular
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • Gary HolmgrenG Gary Holmgren referenced this topic on
            • J jon

              @jonathankampia Just to respond to my own post here in case anyone else has the same question: It does work! We hooked up a VL53L0X rangefinder to the QUP3 i2c ports in the J19 connector and were able to start the driver with no issues by adding the start command to the voxl-px4.conf file. Interestingly, you have to modify both the EKF2_HGT_REF parameter and a specific rangefinder priority parameter that controls whether rangefinder sensor fusion is enabled at all times or just conditionally. If it's just enabled conditionally, the rangefinder data does not fuse into the EKF2 local position estimator.

              Gary HolmgrenG Offline
              Gary HolmgrenG Offline
              Gary Holmgren
              Regular
              wrote on last edited by
              #6

              @jonathankampia Was able to configure the correct startup script as described here. Thanks!

              J 1 Reply Last reply
              1
              • Gary HolmgrenG Gary Holmgren

                @jonathankampia Was able to configure the correct startup script as described here. Thanks!

                J Offline
                J Offline
                jon
                Regular
                wrote on last edited by
                #7

                @Gary-Holmgren Haha your way is a little more robust than mine. I just manually added the qshell start command to the extra commands section of the voxl-px4.conf file.

                1 Reply Last reply
                1

                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