Problem uploading to Arduino mega2560

Hello everyone!

I’m new here and this is my first writing in this awesome forum!
Following steps listed here -> dev.ardupilot.com/wiki/building- … o-windows/ … еverything is done as described. The problem occurs when I try to open the ArduPlane sketch. The problem is that Sketchbook 's sub menu show only 2 members “Libraries” and “Tools”. I read that particular file is needed( *.pde), but such a file is missing in arduplane’s folder.

My question is how to open the ArduPlane’s sketch into arduino working-environment?

p.s. Thanks for your time and sorry for my bad english :slight_smile: Cheers !

The latest version of Plane has been converted from .pde to .cpp.

Thank you for your answer!

I managed to load Arduplane to special arduino working environment. Even managed to upload it to my Arduino Mega2560 board. But now i have another problem. I don’t know how to define IMU and GPS which i am using on the Ardupilot project. When i connect arduino board (with uploaded Ardupilot) with mission planner, the AH display says “BAD/NO TERRAIN DATA” and GPS not working too.

For your informacion i’m using this imu :
dx.com/p/elecfreaks-octopus- … YWbffmqqko

and this GPS :
dx.com/p/ublox-neo-6m-gps-mo … YWcJ_mqqko
The GPS serial port is set to 9600 baud; UBX protocoll.

I’ve red this tread : dev.ardupilot.com/wiki/apmcopter … libraries/
and what i understand is that it need to have a library for OCTOPUS 9DOF which feed data to ardupilot core.

I need help to get the hardware to work with the Ardupilot.

Thank you for your time ! CHEERS!

I had the same problem, but i didn’t undestand how you solve it.
How can I open the sketch?
It’s not on my sketchbook list, only “libraries” and “tools”

[quote=“marcoarruda”]I had the same problem, but i didn’t undestand how you solve it.
How can I open the sketch?
It’s not on my sketchbook list, only “libraries” and “tools”[/quote]

I have the exact same problem. Please tell us how you fix it ;/

StefanG - You have marked this as solved but I cannot see a solution!

I have the exact same problem only two options in sketch book. I now under stand this is because they are cpp files.

But what is the solution? How do I load the cpp files into arduino IDE?

Many thanks for you time.
:slight_smile:

OK after five hours I have an answer!
After you have done this step…

github.com/diydrones/ardupilot.git

Before you close the window you need this step as well…
•Checkout the branch you want to build (the last branch you can use for Copter (APM 2.6) is shown below):

cd ardupilot
git checkout ArduCopter-3.2.1

See step 3 here for more details…

dev.ardupilot.com/wiki/building- … with-make/

1 Like