APM Code Download Error in Arduino IDE

Hi,

I am trying to modify and download the APM Copter code by using Arduino IDE as a first time.

APM 2.5 with ArduCopter 3.2.1 Firmware was used in my trial.

After downloading Arducopter code set into the board by using Arduino IDE, I am getting the following error message.

In file included from adsb.cpp:20:0:
Copter.h:25:19: fatal error: cmath: No such file or directory
#include <cmath>
^
compilation terminated.

First I became suspicious of the extention and add an h extention to cmath. However it didn't worked.

And then, I found  cmath file in libraries\AP_Common\missing folder and put it near the cpp and h files of ArduCopter code set (I also added this file in Arduino IDE). However, I still got the same error.

(Since there is no extention of cmath file, when downloading the code set in IDE, IDE created data folder and put cmath file inside it automatically.)

However, this second trial didn't worked as well.

Did anybody get the same error message?

Am I doing something wrong in the downloading stage of APM code into the board?

Could you please guide me step by step during the APM code downloading to APM2.5 board.

Any suggestion? Thanks in advance. 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity