I’ve looked at the ardupilot pages for object avoidance. Seen that there are options/parameters to set in mission planner to take in sensor data.
If i used a set of ultrasonic sensors and fed this into arduino or the navio 2 via GPIO pins, how would I get the drone (hexacopter) to avoid the objects in loiter mode and stop at 1 or 2m distance?