Rover Pixhawk to connect Arduino Arduino distance sensor

Good day. This is the question, Pixhawk 2.4.8 rover will have a separate arduino on board and there will be distance modules, is it possible to do this when the arduino module sees someone approaching, then the Pixhawk rover itself made a stop? Thanks for the info.