I want to modify the MultiWii flight controller code a little bit for my needs. I have an ultrasonic sensor that I want to use. Therefore I try to iclude the NewPing library at the top of the MultiWii.cpp file, but it always gives me “NewPing.h: No such file or directory”. The same occurs when I try to include other libs (e.g. LCDBitmap).
However, I installed the lib properly in the libraries folder and it shows up in the GUI under Sketch > Include Library. Furthermore I am able to include the libraries in any other sketch without errors. I have tested the NewPing lib already successfully. Only the MultiWii sketch throws errors.
Is there something that I have to consider when including libs in a cpp file?