Edit Pixhawk code to accept Analog Input

I am part of a group of students looking to integrate analog sensors into the drone. These sensors will be used to enhance the drone’s navigation (its autonomous).

The first question is how do we edit the code to create a new data location, and store the value of the analog input within that location. Once that is complete, how do we edit the code to prioritize that information over the information gathered by the gps?

We are using the pixhawk flight controller, Mission Planner software, and the firmware APM Copter 3.5.5 Quad. If there is anything else you need to know, please ask. Any help would be greatly appreciated :slight_smile:

First you’ll want to set up your system to build the code. Take a look at http://ardupilot.org/dev/docs/building-the-code.html for instructions.

APM uses drivers to grab data from sensors. Look at http://ardupilot.org/dev/docs/code-overview-sensor-drivers.html for how to add new drivers.