I have a Raspberry pi that measures the distance between my vehicle and an object.
depending on the distance, i want to avoid that object. I am using an old APM. In which port should i signal? and are there any parameters that i need to set it up for that? can i mock the behavior of a remote control signal with my raspberry pi to avoid the object without changing the flight mode from auto to manual or guided?