I have been working on developing some code for the APM2.5 using the last supported firmware (ArduPlane 3.4). I am trying to make a library for an airspeed sensor that can be configured to measure changes in energy (to be later implemented in a new flight mode). I have modeled my new library off of the existing airspeed library but when using both the energy and airspeed sensor libraries together I am getting no output from the board. Even if the library is just a copy of the airspeed library with class names changed and a different analog pin being used, my output values are still zero. I am currently using MAVProxy as a ground station and to see the outputs of these values.
Any suggestions on where to go from here/what I might be doing wrong?