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.
I mean: the hexacopter never react to these messages.
I mean: it don’t react to theses messages in order to do the terrain following or the collision prevention.
Can you share the flight controller log?
Thanks for your reply.
I’ll share the log in about 8 hours. I have not access to the system now.
could you please upload the log to https://review.px4.io/ and share the link? thank you
Thanks for the log. Unfortunately I cannot tell much from it because the logging profile doesn’t contain the messages used to do Collision Prevention. Could you please provide a log with the parameter SDLOG_PROFILE set to also log Computer Vision and Avoidance topics. Thanks
I’ll will do other flight with SDLOG_PROFILE set to log Computer Vision and Avoidance topics and I make it available.
Thank you for you help in this issue
The log with SDLOG_PROFILE set to log Computer Vision and Avoidance is available in https://review.px4.io/plot_app?log=4f68dcbc-5faa-44e7-91d7-474c5eb1dbe9
The terrain following is not working also. Do you think there are some connection between the 2 issues?
This time I notice an alarm of Collision but the hexacopter didn’t stop.
I appreciate your help
Maybe this https://github.com/PX4/Firmware/issues/11133 is related with the issue of terrain following not working?
As far as I can tell the collision prevention is working. This is from your log. In flight review if you scroll down the bottom you can see the collision prevention warning