I use an arduino to send DISTANCE_SENSOR ([ #132 ] and OBSTACLE_DISTANCE ([ #330 ] messages through serial interface to a CUBE flight controller.
I can see with success the messages in the QGroundcontrol but when I test my hexacopter, it react to theses messages in order to do the terrain following or the collision prevention.
For Collision Prevention I set the MPC_COL_PREV_D to 6 m.
For Terrain Following I set:
I need help to understand why the flight controller receive the messages with success but don’t react to them.