How To Build Ardupilot With Arduino
How To Build Ardupilot With Arduino
By Philip Rowse
ProfiCNC
Rowse Avionics
Contents
Step 1 Install Git-SCM ....................................................................................................................................................... 3
Step 2 Download source ................................................................................................................................................... 5
Step 3 Install MHV_AVR_Tools to its default location. ..................................................................................................... 7
Step 4 Install ArduPilot-Arduino ....................................................................................................................................... 9
Step 5. Configure Arduino ............................................................................................................................................... 10
Step 6 Connect your APM to your USB ........................................................................................................................... 12
Step 7 Configure Arducopter. ......................................................................................................................................... 14
Step 8 Upload to your ArduPilot. .................................................................................................................................... 16
WARNING ........................................................................................................................................................................ 17
Updating your code......................................................................................................................................................... 17
Select preferences
and select Arduino Mega 2560 or Mega ADK from the Board tab.
Next select the Tools tab again, and set the Serial Port to the one your APM is connected to.
In my case it was COM4, but check under device manager / Ports to find out on your system..
DISABLED
ENABLED
Is changed to
#define AUTOTUNE
WARNING
The code you have just compiled is now UN-TESTED in your configuration. Please use only for testing. If you are not
confident, please just use mission planner to upload pre-compiled code.