@Inverse-AJ @rogerli
Hi, I also struggled with the OBSTACLE_DISTANCE MAVLink message not appearing in the MAVLink Inspector. Moreover, obstacle avoidance was not functioning after I upgraded v1.3.5 to ModalAI SDK v1.5.0. If you're experiencing this issue, ensure the following:
Set MPC_POS_MODE to 0 (Simple Position Control) or 3 (Smooth Position Control). The default value (4, Acceleration-based Input) is incompatible with ModalAI’s VOXL platform.
Set COM_OBS_AVOID to 1. This enables obstacle avoidance in PX4.
Set CP_DIST to a value greater than 0. This specifies the critical distance for collision prevention.
Ensure your drone has a valid home position or local position from QVIO. This is required for proper navigation.
Ensure your drone is in Position Hold mode. Obstacle avoidance requires this flight mode.
Although the OBSTACLE_DISTANCE message does not appear in the MAVLink Inspector, QGroundControl displays the obstacle distance overlay in its telemetry view, and the drone successfully performs obstacle avoidance. Note: This applies to ModalAI SDK v1.5.0; check for updates in newer versions.
f0d0fe9f-61ff-4287-9210-186dafc0879a-Untitled.jpg