Skip to content

Building with CMake

jgoppert edited this page Feb 13, 2012 · 7 revisions

Linux

Download arduino

wget http://arduino.googlecode.com/files/arduino-0023.tgz -O /tmp/arduino-0023.tgz
sudo tar xvzf /tmp/arduino-0023.tgz -C /usr/local/share

Download ardupilotone

mkdir -p ~/Projects
cd ~/Projects
git clone git://github.com/arktools/ardupilotone.git

Configure CMake and build

PORT is the usb of the FTDI cable connect to the autopilot. BOARD is mega for (1280) and mega2560 for (2560)

cd ~/Projects/ardupilotone
mkdir build
cd build
cmake .. -DBOARD=mega -DARDUINO_SDK_PATH=/usr/local/share/arduino-0023 -DPORT=/dev/ttyUSB0
make

Upload the hex file to the board

make upload

[Home] (/arktools/ardupilotone/wiki/Home)


[Hardware-in-the-loop Testing] (/arktools/ardupilotone/wiki/HIL)


[RoadMap] (/arktools/ardupilotone/wiki/RoadMap)

[Troubleshooting] (/arktools/ardupilotone/wiki/TroubleShooting)

Clone this wiki locally