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

    voxl2 rangefinder (lw20)

    Ask your questions right here!
    4
    10
    624
    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.
    • R
      relevinsky
      last edited by 16 Nov 2023, 16:05

      Hi,

      I need to connect my rangefinder (LW20) to the VOXL2 board using connector J19 (by I2C) to the PX4 flight controller. What configurations should I make in QGroundControl to receive the "Distance Sensor" message in the Mavlink Analyze tab?

      Thank you.

      E 1 Reply Last reply 17 Nov 2023, 15:10 Reply Quote 0
      • E
        Eric Katzfey ModalAI Team @relevinsky
        last edited by 17 Nov 2023, 15:10

        @relevinsky The driver for that is not currently built into the VOXL2 PX4 firmware. You would need to add that to your build.

        V 1 Reply Last reply 14 May 2024, 18:10 Reply Quote 0
        • V
          voxltester @Eric Katzfey
          last edited by voxltester 14 May 2024, 18:11 14 May 2024, 18:10

          @Eric-Katzfey
          I am wondering if rangefinders can be used for VOXL2.
          Specifically, I have LW20/C rangefinder and tried to setup on VOXL2 by referring to https://docs.modalai.com/voxl2-D0015/. But it is not working.

          One more thing is voxl-configure-rangefinders package.
          https://gitlab.com/voxl-public/voxl-sdk/services/qrb5165-rangefinder-server
          Can you explain what this one is for?
          I tried to use it by running voxl-configure-rangefinders, it is not working..
          I hope you provide the instruction to install the rangefinder on the VOXL2.

          Thank you.

          E 2 Replies Last reply 15 May 2024, 14:48 Reply Quote 0
          • E
            Eric Katzfey ModalAI Team @voxltester
            last edited by 15 May 2024, 14:48

            @voxltester In order to use the LW20 with i2c interface you would need to add that driver to your build (e.g. in boards/modalai/voxl2-slpi/default.px4board). And then you would need to start that driver in the startup script (e.g. in boards/modalai/voxl2/target/voxl-px4-start).

            V 1 Reply Last reply 15 May 2024, 15:05 Reply Quote 0
            • E
              Eric Katzfey ModalAI Team @voxltester
              last edited by 15 May 2024, 14:51

              @voxltester The voxl-configure-rangefinders refers to range finders connected to the apps processor outside of px4. If you use that then the voxl-rangefinder-server will communicate to px4 with mavlink messages to indicate distance.

              1 Reply Last reply Reply Quote 0
              • V
                voxltester @Eric Katzfey
                last edited by voxltester 15 May 2024, 15:37 15 May 2024, 15:05

                @Eric-Katzfey
                Thank you for your quick answer.
                Eric, on my VOXL2 flight deck, I cannot find board folder...
                Please refer to the version info of my VOXL2.

                voxl2:/$ voxl-version 
                --------------------------------------------------------------------------------
                system-image: 1.7.1-M0054-14.1a-perf-nightly-20231025
                kernel:       #1 SMP PREEMPT Thu Oct 26 03:25:38 UTC 2023 4.19.125
                --------------------------------------------------------------------------------
                hw platform:  M0054
                mach.var:     1.0
                --------------------------------------------------------------------------------
                voxl-suite:   1.1.3-1
                --------------------------------------------------------------------------------
                Packages:
                Repo:  http://voxl-packages.modalai.com/ ./dists/qrb5165/sdk-1.1/binary-arm64/
                Last Updated: 2024-05-07 20:27:28
                
                V T 2 Replies Last reply 15 May 2024, 15:09 Reply Quote 0
                • V
                  voxltester @voxltester
                  last edited by voxltester 15 May 2024, 15:09 15 May 2024, 15:09

                  @Eric-Katzfey
                  One more question,
                  Is there any other way to use LW20 instead of i2c?

                  1 Reply Last reply Reply Quote 0
                  • T
                    tom admin @voxltester
                    last edited by 15 May 2024, 16:29

                    @voxltester This is what he is referring to as the boards folder: https://github.com/modalai/px4-firmware/tree/b5c45bb232afc6a936b8349f4fa0be1efeb17707/boards

                    V 1 Reply Last reply 15 May 2024, 16:52 Reply Quote 0
                    • V
                      voxltester @tom
                      last edited by 15 May 2024, 16:52

                      @tom
                      THank you for the info.
                      I am using VOXL2 flight deck... I never touched the PX4....

                      What I found just before is /etc/modalai/voxl-px4.conf
                      I edited DISTANCE_SENSOR=LIGHTWARE_SF000, then I was able to see PX4 parameter SENS_EN_SF0X in QGC. I set it as LW20/c..

                      But I cannot see the rangefinder data in QGC MAVLink Inspector...

                      E 1 Reply Last reply 16 May 2024, 15:11 Reply Quote 0
                      • E
                        Eric Katzfey ModalAI Team @voxltester
                        last edited by 16 May 2024, 15:11

                        @voxltester Again, LW20 is not in the px4 build. Until you rebuild px4 with that driver you cannot use it within px4. So, you have 2 choices. Rebuild PX4 and try to get LW20 working within PX4 or take a look at the source code for voxl-rangefinder-server and see if you can add support for LW20 into that. It currently supports the vl53l1x rangefinder. Perhaps you can just switch to that rangefinder model? Otherwise the source code it here: https://gitlab.com/voxl-public/voxl-sdk/services/qrb5165-rangefinder-server

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