Hi, I would like to build my own 360 degrees object avoidance sensor (just for fun). Is there some (Python…?) example for how the MAVLink Distance Sensor message should look like…? Some other DIY project maybe… If anyone knows where I can search, that would be great. Thanks!
Edit: For me, it look like Uart is the only possible way to send the MAVLink message. But maybe the 360 degrees distance information could also be supplied via i2c…?
Ardupilot alredy supports multiple 360° Lidars, either rotating ones, or multiple static ones pointing in different directions.
What exactly are you trying to achieve here? We (IAV GmbH) have been using cameras attached to a companion computer and fancy vision algorithms that generate Mavlink DISTANCE_SENSOR messages that we then feed to the Ardupilot via UART. So yes, it can be done.