I am trying to use the same file (pwm_input.cpp) for reading RPM. It works well but my Pixhawk board freezes/hangs randomly. I strongly suspect that my RPM reading module may be the reason. Due to safety concerns related to this random phenomenon, I am unable to go for flight.
Any further leads in this regard would be highly appreciated.
@Albin : Were you finally able to use pwm_input.cpp for reading RPM from your sensor?