I'm trying to load version 2.4 of Arduplane and I've followed instructions on http://code.google.com/p/ardupilot-mega/wiki/Programming, but now that I have Arduino installed, I open a file and it allows all file types. No matter what file I select to upload, it tries to compile it first and then runs into compilation errors.
I don't want to compile 2.40, isn't there a binary that I can just upload through USB RS232 ?
Basically do what the APM does, but with older versions of Ardupilot?
Please help? Thanks!
Tags: Arduino
Permalink Reply by Greg Fletcher on August 1, 2012 at 11:26pm Arduino needs to know where the libraries are so the can be linked by the compiler. It uses the libs in your sketch book.
In the file tab, go to "Preferences" and select the location of your APM 2.4 top directory, which contains the libraries. The long string of red ink photons pixles, are all the missing cpp files.
Permalink Reply by Hein du Plessis on August 2, 2012 at 12:32am Thanks Greg, I think I specified the wrong directory then. Will try again a bit later.
Permalink Reply by Hein du Plessis on August 2, 2012 at 2:39am Hi Greg
Still no go, I open the Arduplane.pde file and do a verify / compile and I get 241 errors, the first of which is "AP_Int16' does not name a type.
In preferences I have Sketchbook location set to C:\ArduPilot\ArduPlane-2.40\ArduPlane-2.40, which contain the folders libraries, images, etc.
Permalink Reply by Hein du Plessis on August 2, 2012 at 3:44am EDIT: After restarting Arduion I notice Arduplane etc is selectable from the Sketchbooks menu, but once loaded, it still errors out, this time: "UBRR1H' was not declared in this scope".
Any ideas?
EDIT! After searching for my own terms I came across this: http://diydrones.com/forum/topics/compile-errors-from-git-version?c.... Looks like I had to select the correct board! Made a comment in the wiki to other newbies.
Permalink Reply by davidbuzz on August 1, 2012 at 11:44pm I too have requested this in the past. ( the ability to load previous versions of the hex files ), but it's not a feature that's currently available. the best method to get previous version/s uses Arduino, and compiled the code.
Compiling in Arduino is trivial if done right, so dont be put off it. Greg's post is important to get right, but after that pressing "verify" will test if the code can be compiled right and after than just pressing "upload" will do automatically do the compile-and-upload of which ever code you want.
Permalink Reply by davidbuzz on August 2, 2012 at 12:09am If you want to dig deep, it's possible that you might find .hex files here:
https://code.google.com/r/meee146-planner/source/list
( look for commits lableled "firmware build" , and then look for the commit date to closely match the release date of the particular code version) .
eg: this commit, on July 25 is the same date as the ArduPlane 2.50 was released:
https://code.google.com/r/meee146-planner/source/detail?r=dfc5737c5...
these .hex file/s are what APMplanner downloads and uses when you press the firmware upload button..... but it's up to you to figure out how to get an old version of .hex and upload it. It might be that you could do something like this ( untested) ..... look in the Program Files/APM Planner/ folder for a file called firmware.hex or firmware.hex.plane, and overwrite it with your manually downloaded one, and then disable your internet connection, so APM planner is unable to fetch a new one. no idea, but it might work.
Permalink Reply by Hein du Plessis on August 2, 2012 at 12:32am Ah thank you very much, I'll put some effort in and get the compile done. A little nervous trusting my plane with something I compiled myself ...
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.74 members
685 members
133 members
51 members
314 members
© 2013 Created by Chris Anderson.
Powered by
