I can't see OBSTACLE_DISTANCE on QGC
-
I am attempting to use VOXL2 to connect to an external flight controller for collision prevention. I can see the information from voa_pc_out on VOXL2, but I am unable to see the information from OBSTACLE_DISTANCE on QGC. VOXL2 is connected to the telemetry 2 port of the external flight controller via UART. Here are my MAVLink parameter settings:
MAV_1_CONFIG : TELEM 2
MAV_1_FLOW_CTRL : Auto-detected
MAV_1_FORWARD : Disabled
MAV_1_MODE : Onboard
MAV_1_RADIO_CTL : Enabled
MAV_1_RATE : 0
SER_TEL2_BAUD : 921600
COM_OBS_AVOID : EnabledOn the VOXL2, it is connected to the USB/UART add-on board at J3, and the parameters in the voxl-mavlink-server.conf file are set as follows:
{
"primary_static_gcs_ip": "192.168.8.10",
"secondary_static_gcs_ip": "192.168.124.197",
"onboard_port_to_autopilot": 14556,
"onboard_port_from_autopilot": 14557,
"gcs_port_to_autopilot": 14558,
"gcs_port_from_autopilot": 14559,
"en_external_uart_ap": true,
"autopilot_uart_bus": 1,
"autopilot_uart_baudrate": 921600,
"en_external_ap_timesync": 1,
"en_external_ap_heartbeat": 1,
"udp_mtu": 0,
"gcs_timeout_s": 4.5
}Then, when I use the "mavlink status" command on QGC to check, I see that the rx loss is 63.1%, why is this problem happening? How can I resolve it?"
-
Have you verified the voltage level of your UART match?
-
@Moderator
The external flight controller I am using is Cube Orange+. The voltage level of UART on both the USB/UART add-on board at J3 and the Cube Orange+ telemetry port (telem2) is shown in the image below
add-on board:
cube orange+:
-
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?