I can't see OBSTACLE_DISTANCE on QGC
-
Hi @rogerli
Are you only connecting the UART and GND?
You need a 2-2, 3-3, and 4-6 cable.
Not sure what the CUBE connector is, but maybe our https://docs.modalai.com/cable-datasheets/#mcbl-00067 will work for you?Be sure the 3.3V and 5V is not connected.
Hope this helps. -
Shot in the dark I would turn off MAV_1_FORWARD if it is enabled.
Also, do you have any other mavlink based device that is connected? If so I would unplug it to see if this helps resolve the issue
-
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.
-
@rogerli What messages do you see in mavlink inspector?
-
@Eric-Katzfey said in I can't see OBSTACLE_DISTANCE on QGC:
mavlink inspector
This is the messages I see in the MAVLink inspector.
-
@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? -
@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?
-
@rogerli What is the parameter CP_DIST set to?
-
@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.
-
@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?