Mission Planner SITL Rangefinder Not avoiding obstacles

Hi there,

Recently (2 weeks ago), I tried on dronex4 frame and on rover , real ones, not SITL, - both cubeblack, the X4 with 4.3.x and the Rover 4.2.x; and can’t get any Mavlink rangefinder to stop a vehicle either… like he has on SITL.

May be I am also doing something wrong as well, but indeed very strange that SITL and real drone implementation fail ?

  • I used simple sonar on rpizero serial connected to Pixhawk - onboard a Mavproxy relay mavlink messages to Pixhawk and the radar of the MissionPlanner can display the sonars very well and on the right orientation. (sonars on soft-I2C on rpiz).

For settings, as well I followed:
I followed : Simple Object Avoidance — Copter documentation.

And really I played a lot around the parameters… …but the drone or the rover just go forward to hit the obstacle… ! Albeit the MissionPlanner Radar shows the right distance… strange…very strange.

Have anyone tried recently a simple obstacle avoidance with MavLink rangefinders ?

@rmackay9 “long” ago there was a MavLink issue up to version 4.1 : Proximity Sensor - DISTANCE_SENSOR Mavlink Message - #7 by iamczar

This got corrected starting 4.2, if I remember, but may be some left over would impact the simple obstacle avoidance when using MavLink rangefinder?

Any idea from your experiments ?