Learning to program the Ardupilot Mega

Information

Learning to program the Ardupilot Mega

A group to discuss the many ways to edit and compile the code for the Ardupilot Mega!

Members: 315
Latest Activity: 3 hours ago

Discussion Forum

My Brain is Melting, usual newbie help required please.

Started by alex corbett. Last reply by Sid Apr 30. 10 Replies

Hi Everyone,I've been happily flying and being flown by my apm2 tricopter since pretty much it came out. I've never dabbled in altering or writing code.......until now.I'm trying to sort    …Continue

Tags: how, to, compile, arduino, frsky

Getting Reliable Attitude & Heading Data

Started by Nicholas J Anderson. Last reply by Redemptioner Apr 26. 8 Replies

Hello,For the sake of better understanding APM guts I've been working on what I've been calling ArduGimbal.  I've just assembled code together looking at Arducopter 2.5.5 for how to structure the…Continue

obstacle avoidance programing using 6 maxbotix (XL-max sonar - EZ/AE) range finders (arducopter)

Started by anubhav prabakar. Last reply by Steven Lutz Mar 25. 6 Replies

Hi guys!!!I would like to program the APM 2.0 and integrate these 6 sensors for obstacle avoidance. Has anybody done that?? Any hints on how to do this??Continue

Takeoff and Arm from GCS arducopter 2.9.1

Started by Markus Järve. Last reply by Markus Järve Mar 18. 21 Replies

Firstly I would like to apologize for sending takeoff message to all people in "Learning to program the Ardupilot…Continue

Tags: motor, arming, MP, Takeoff

Comment Wall

Comment

You need to be a member of Learning to program the Ardupilot Mega to add comments!

Comment by Veikko Vierola on May 11, 2012 at 1:22pm

I managed to upload the data to the board, I used port /dev/tty.usbserial-A8003WBz???

Then I tried the verify again, and the same error as earlier ....(

AP_Int16    format_version; (highlighted in yellow)

'AP_Int16' does not name a type (white text on red)

And then a lot of errors (red text on black)).....

What might cause this....

Comment by Veikko Vierola on May 11, 2012 at 1:01pm

I try the upload next....

Comment by Veikko Vierola on May 11, 2012 at 1:01pm

Sorry, my mistake didn't do the folder selection right way...Now when I verify there is no errors, only .....Done compiling text....

and


Binary sketch size: 141948 bytes (of a 258048 byte maximum)

Comment by Veikko Vierola on May 11, 2012 at 12:52pm

Does APM need to be connected already when verifying or only when uploading?

I selected board Arduino Mea 2560 ....Lot of errors when verifying...

AP_Int16    format_version; (highlighted in yellow)

'AP_Int16' does not name a type (white text on red)

And then a lot of errors (red text on black)


Developer
Comment by Andreas M. Antonopoulos on May 11, 2012 at 11:39am

Veikko, 

I also run Lion, so I will offer some help.

First, download the arduino code with the relax-patch from here:

http://code.google.com/p/ardupilot-mega/downloads/detail?name=ardui...

This is the arduino IDE that will allow you to compile and load the code.

Unzip and copy "Arduino" to Applications

Next, grab the software. Get copter or plane from the downloads directory:

plane - http://code.google.com/p/ardupilot-mega/downloads/detail?name=ArduP...

copter - http://code.google.com/p/arducopter/downloads/detail?name=ArduCopte...

Unzip the files into a directory. 

Open Arduino from applications. Open Preferences

Change sketchbook location to be the top directory where you unzipped the APM code. 

Click the "open sketch" button which is the "up" arrow. You should see the directory you unzipped the code. Select "ArduCopter" or "ArduPlane" as the sketch. 

Arduino should open a lot of tabs 

Select the board and speed

Hit Veirfy to compile [this is where things might go wrong. Copy any errors from the console and come back here for help!]

then Upload

Comment by Veikko Vierola on May 11, 2012 at 9:51am
Monroe, I mainly use Lion OS X, but I have also Win XP available.
Comment by Eagle on May 10, 2012 at 4:33pm

What a great idea to create this Group.  I salute you M. Monroe ;)

Comment by Veikko Vierola on May 10, 2012 at 3:02pm

Never compiled or installed manually code to APM. Now I need to do it so I can get the Antonopolous's DroneCell code working in my APM1 (2560). can someone help how get started what programs to use etc...

 
 
 

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service