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

    I can't see OBSTACLE_DISTANCE on QGC

    Support Request Format for Best Results
    6
    17
    786
    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
      rogerli
      last edited by 25 Feb 2024, 18:44

      I only connected UART and GND, and VOXL2 is only connected to the Cube Orange+, a WiFi dongle, and a stereo camera.

      I can use the "listener obstacle_distance" command on QGC's MAVLink console to obtain depth information about obstacles, and I have successfully enabled collision prevention for the drone in position mode. However, I still cannot see "obstacle_distance" on the MAVLink inspector.

      2c10b38d-a06e-4e0d-8bc5-4d6d04c8faaa-voxl_distance.png

      E 1 Reply Last reply 26 Feb 2024, 16:59 Reply Quote 0
      • E
        Eric Katzfey ModalAI Team @rogerli
        last edited by 26 Feb 2024, 16:59

        @rogerli What messages do you see in mavlink inspector?

        R 1 Reply Last reply 11 Mar 2024, 08:05 Reply Quote 0
        • R
          rogerli @Eric Katzfey
          last edited by 11 Mar 2024, 08:05

          @Eric-Katzfey said in I can't see OBSTACLE_DISTANCE on QGC:

          mavlink inspector

          This is the messages I see in the MAVLink inspector.
          6c9c15c5-c926-4f17-a250-dd14b791311d-Screenshot from 2024-03-11 16-01-00.png
          43a275aa-2cbc-49ff-b687-3e9a2869ff94-Screenshot from 2024-03-11 16-01-42.png

          E 1 Reply Last reply 12 Mar 2024, 02:20 Reply Quote 0
          • E
            Eric Katzfey ModalAI Team @rogerli
            last edited by 12 Mar 2024, 02:20

            @rogerli The OBSTACLE_DISTANCE Mavlink message is based on the obstacle_distance_fused topic. Can you do listener on that topic to see if it is being published?

            R 1 Reply Last reply 18 Mar 2024, 03:51 Reply Quote 0
            • R
              rogerli @Eric Katzfey
              last edited by 18 Mar 2024, 03:51

              @Eric-Katzfey said in I can't see OBSTACLE_DISTANCE on QGC:

              No, I am unable to use the listener command to see the obstacle_distance_fused message. How can I enable this feature?

              E 1 Reply Last reply 18 Mar 2024, 15:55 Reply Quote 0
              • E
                Eric Katzfey ModalAI Team @rogerli
                last edited by 18 Mar 2024, 15:55

                @rogerli What is the parameter CP_DIST set to?

                I 1 Reply Last reply 3 Apr 2025, 02:21 Reply Quote 0
                • I
                  Inverse AJ @Eric Katzfey
                  last edited by Inverse AJ 3 Apr 2025, 02:32 3 Apr 2025, 02:21

                  @Eric-Katzfey I am having a similar problem, where I can see obstacle_distance, but not obstacle_distance_fused using the listener command. When I checked CP_DIST it was set to -1 so I set it to 1 and then I could briefly see both with the listener command, and was able to see obstacle_distance using the mavlink inspector. After unplugging then replugging in my pixhawk, this was gone and I was back to only being able to see obstacle_distance with the listener command. Was there something that could've changed during my restart? I checked CP_DIST and it was still set to 1 even afterwards.

                  The only notable differences between my system and the original users is that my connection is across ethernet.

                  E 1 Reply Last reply 3 Apr 2025, 17:02 Reply Quote 0
                  • E
                    Eric Katzfey ModalAI Team @Inverse AJ
                    last edited by 3 Apr 2025, 17:02

                    @Inverse-AJ A quick look at the code shows that CP_DIST has to be greater than 0 and current flight mode has to be manual position mode. What flight mode are you in?

                    I 2 Replies Last reply 8 Apr 2025, 01:29 Reply Quote 0
                    • I
                      Inverse AJ @Eric Katzfey
                      last edited by 8 Apr 2025, 01:29

                      @Eric-Katzfey I was previously in "Hold" mode, but I tried in "manual" and still am not seeing the obstacle_distance_fused message. I noticed one other difference in my parameters which is that COM_OBS_AVOID doesn't exist for me.

                      Another question, I had previously re-flashed the Pixhawk firmware after changing the file: "PX4Autopilot/src/modules/uxrce_dds_client/dds_topics.yaml". I had added the following to the publications section:

                      • topic: /fmu/out/obstacle_distance_fused
                        type: px4_msgs::msg::ObstacleDistance

                      However, it had no effect so I reverted back to the default px4 firmware shown on QGC. Is that change necessary to see the message or should I leave the default?

                      1 Reply Last reply Reply Quote 0
                      • I
                        Inverse AJ @Eric Katzfey
                        last edited by Inverse AJ 8 Apr 2025, 02:36 8 Apr 2025, 02:22

                        @Eric-Katzfey Small update. I also tried it with the custom firmware with that additional publication added (from previous reply), and the result has not changed. obstacle_distance_fused still shows up as "never published" when using the listener. However, with the custom firmware I get warnings from QGC about missing parameters: BAT1_V_LOAD_DROP, BAT2_V_LOAD_DROP, and COM_OBS_AVOID. I pulled the most recent main branch for the PX4 Repository to build it, so maybe there's not support by QGC yet?

                        E 1 Reply Last reply 8 Apr 2025, 15:49 Reply Quote 0
                        • E
                          Eric Katzfey ModalAI Team @Inverse AJ
                          last edited by 8 Apr 2025, 15:49

                          @Inverse-AJ Have you asked this question on PX4 forum? https://discuss.px4.io/c/px4/25

                          I 1 Reply Last reply 9 Apr 2025, 20:42 Reply Quote 0
                          • I
                            Inverse AJ @Eric Katzfey
                            last edited by 9 Apr 2025, 20:42

                            @Eric-Katzfey I had not since this discussion was the closest I could find to my issue. But I have created one now: Cannot see obstacle_distance_fused on QGC

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