Craig Hughes's Posts (1)

Sort by

ArduinoCommunityLogo.png?width=200

ArduPilot using Arduino 1.0.5 and avr-gcc 4.8.1

I've merged the ardupilot code with the latest Arduino 1.0.5-r2 code (git version which is well on the way to 1.0.6), plus the avr-gcc 4.8.1 from the Arduino 1.5.x development branch.

Net result is the "latest" Arduino version, with ardupilot extensions and a compiler that reduces the flash size of ardupilot by about 20% or so.  Benchmarks indicate that 4.8.1 produces code that runs about 1.5-8x faster than the old compiler too, depending on the amount of I/O that's being done.  I haven't done any extensive benchmarking yet of ardupilot under the new compiler, but this should give more headroom for the kinds of features I'd like to add to the platform.

I'm actually working with ardupilot-mpng for the HK multiwii/megapirate AIO board, so I've added a board for that in the ardupilot menu in Arduino too.

I'm working on OSX, so I haven't updated the compiler for Linux/Windows, but it should be pretty easy to do that by modifying build/build.xml and downloading the 4.8.1 compiler toolchain for your platform from http://downloads.arduino.cc/avr-toolchain-${file_arch}-gcc-4.8.1.zip where ${file_arch} is your platform.

My github fork is at https://github.com/hughescr/Arduino on the "develop" branch

You can download a pre-built (by me) OSX Arduino.app here:

https://www.dropbox.com/s/g1jvk8r8gln7v2m/ardupilot-mpng-gcc-4.8.1-1.0.5-r2-121-g080b774-macosx.zip

Read more…