Editing the source code in Arduino IDE

Hi, I recently got an APM 2.6 board that I am trying to use with an RC plane. The problem that I am running into is that I want to use sensors other than the ones they expect in Mission Planner(I want to use a hall effect sensor to monitor motor RPM as well as temperature sensors). I followed the steps on: dev.ardupilot.com/wiki/building- … o-windows/
and everything was going well until the very end. I started to compile it, but I got an error saying that the sketch is too big. My questions are:

  1. Is this the best way to go about using other sensors?
  2. Other than commenting out libraries I don’t need, is there another way to get the sketch small enough to compile?

Thanks!

We are basically out of space on the 2.5 board so yes you will need to comment out sections you don’t use.

When you have your code working please make a pull request to github as it would be great to get your contribution added to the libraries.

Thanks

For an easier time connecting to the sensors, would it be easier to just switch to the Pixhawk?