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!
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.
Thanks Greg, I think I specified the wrong directory then. Will try again a bit later.
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.
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".
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.
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.
If you want to dig deep, it's possible that you might find .hex files here:
( 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:
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.
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 ...