- Setup the Build Environment on Linux/Ubuntu
$ sudo apt-get update
$ sudo apt-get install git
$ git clone https://github.com/ThePeach-Drone/ardupilot.git
$ cd ardupilot
$ git submodule update --init --recursive
$ Tools/environment_install/install-prereqs-ubuntu.sh -y
$ . ~/.profile
- Add some directories to your search path (Facultative) -- Add the following lines to the end of your ".bashrc" in your home directory (notice the . on the start of that filename. Also, this is a hidden file, so if you're using a file manager, make sure to turn on "show hidden files").
export PATH=$PATH:$HOME/ardupilot/Tools/autotest
export PATH=/usr/lib/ccache:$PATH
-- Then reload your PATH by using the "dot" command in a terminal
$ . ~/.bashrc
$ sudo usermod -a -G dialout $USER
- How to build THE PEACH K1's firmware
$ ./waf clean
$ ./waf configure --board thepeach-k1
$ ./waf copter
-- The "arducopter" binaries should appear in the build/thepeach-k1/bin directory.
- How to build THE PEACH R1's firmware
$ ./waf clean
$ ./waf configure --board thepeach-r1
$ ./waf copter
-- The "arducopter" binaries should appear in the build/thepeach-r1/bin directory.default/