-윈도우용 툴체인 다운로드 : http://firmware.eu.ardupilot.org/Tools/PX4-tools/
■ 윈도우에서 빌드 준비
1. px4_toolchain_installer_v14_win.exe 설치
- 만일 toolchain을 D드라이브에 설치했다면 아래 PATH를 추가해 주어야 한다.
D:\pixhawk_toolchain\Python27;D:\pixhawk_toolchain\Python27\Scripts;D:\pixhawk_toolchain\toolchain\bin
2. PX4 Console 실행
■ Ubuntu에서 빌드
#!/bin/sh
###########################################################
#
# Ardupilot 빌드
#
###########################################################
CURRENT_DIR=$PWD
git clone -b Copter-3.3 https://github.com/ArduPilot/ardupilot.git
cd $CURRENT_DIR/ardupilot
./Tools/scripts/install-prereqs-ubuntu.sh -y
source ~/.profile
cd $CURRENT_DIR/ardupilot
git submodule update --init --recursive
# Build (PX4-v2)
make clean
cd ArduCopter
rm -f ArduCopter-v2.px4
make px4-clean
make px4-v2
mv ArduCopter-v2.px4 arducopter-3.3.3.px4
■ 공통 빌드 방법
1. git 웹사이트에서 소스코드를 다운로드 받는다.
☞ 특정버전을 받으려면 해당 Branch를 따로 명시해줘야 한다.
ArduCopter-3.3.3
git clone -b Copter-3.3 https://github.com/ArduPilot/ardupilot.git
ArduCopter-3.2.1 (APM 용)
git clone -b ArduCopter-3.2.1 https://github.com/ArduPilot/ardupilot.git
2. 서브모듈 업데이트
cd ardupilot
git submodule update --init --recursive
3. 빌드
make clean
cd ArduCopter
make px4-clean
make px4-v2
4. 펌웨어를 얻는다.
ArduCopter-v2.px4 파일 확인 후 이름 변경
mv ArduCopter-v2.px4 arducopter-3.3.3.px4