Some people may want to develop under a Linux computer due to its convenience and also because is faster to cross-compile and after deploy binaries into the board.
In order to compile the sources to get a executable to run into Erle-Brain, you need to cross-compile. That means you need a compiler that can create proper executables for ARM processor that Erle-Brain has within.
Install the gcc compiler:
sudo apt-get install gawk gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
Once you have installed
gcc, just cross-compile the code.
apt-get install git
secondly, clone repository:
git clone https://github.com/erlerobot/ardupilot.git
Get into one of the vehicles folder and run:
cd ardupilot/Ardu<vehicle> make pxf -j4 # -j4 is a parameter to refer how may cores #we want to use to compile the code
Finally, copy the binary. The compilation is deployed under
#Copy ArduCopter scp ArduCopter.elf firstname.lastname@example.org:~/ #Copy ArduRover scp ArduRover.elf email@example.com:~/ #Copy ArduPlane scp ArduPlane.elf firstname.lastname@example.org:~/
If you wish to learn about more advance topics, please read this content