Adding collision detection to ArduPilotMega

Hi,

I'm working on a rover project for my education with 4 fellow students. The goal of the project is getting a rover to work with the APM 2.6 so it can autonomously ride a certain route while avoiding any collisions in it's path.

I've been reading a lot about the collision detection on this forum but i have failed to understand how to interface sensors with the APM.

My question is: is there any build in function in the ArduRover firmware to avoid collisions or do we have to edit the source code to implement this? Also, how do we connect the sensors to the rover? Do we use the analog pins on the APM or should we connect the sensors to a Arduino Uno and connect it to the telemetry/I2C port and communicate sensor reading trough MAVlink?

We are using the ArduRover 2.5 firmware.

Here's a picture of our setup for anyone interested, if you need any additional info please let me know.

3691287513?profile=original

Thanks in advance!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity