-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs for after yet another 'clean' install.
- Loading branch information
1 parent
c2ca531
commit a00ffac
Showing
1 changed file
with
20 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,8 @@ http://ardupilot.org/dev/docs/sitl-with-xplane.html | |
|
||
### Install dependencies: | ||
|
||
<!-- Install Python 3: | ||
``` | ||
brew install python | ||
``` --> | ||
|
||
Ensure the above version overrides the built-in Python 2 in macOS, by adding this | ||
to the end of your `.zshrc` or `.bash_profile`: | ||
|
||
``` | ||
export PATH="/usr/local/opt/python/libexec/bin:$PATH" | ||
brew install python@2.7 | ||
``` | ||
|
||
Verify with: `python --version`. | ||
|
@@ -50,30 +41,37 @@ brew install gawk | |
|
||
Download Ardupilot: | ||
|
||
``` | ||
```bash | ||
git clone [email protected]:ArduPilot/ardupilot.git | ||
``` | ||
|
||
Build Ardupilot for macOS: | ||
|
||
```bash | ||
cd ardupilot && ./Tools/environment_install/install-prereqs-mac.sh | ||
``` | ||
brew uninstall binutils | ||
cd ardupilot | ||
./Tools/environment_install/install-prereqs-mac.sh | ||
|
||
Add the following to your shell: | ||
|
||
``` | ||
export PATH=/Path/To/ardupilot/Tools/autotest:$PATH | ||
``` | ||
|
||
Configure Ardupilot for SITL: | ||
|
||
``` | ||
cd ardupilot | ||
./waf configure --board sitl | ||
|
||
And run Arducopter: | ||
|
||
```bash | ||
cd ardupilot/ArduCopter | ||
cd ArduCopter | ||
sim_vehicle.py -w | ||
``` | ||
|
||
After initialisation Ctl C and run the following: | ||
|
||
``` | ||
sim_vehicle.py --console | ||
``` | ||
|
||
Start X-Plane and set up the data export settings per web page, then run arduplane and mavproxy | ||
|
||
mavproxy.py --master=tcp:127.0.0.1:5760 --out 127.0.0.1:14550 | ||
|
@@ -99,7 +97,7 @@ Which can also be added to `~/.mavinit.scr` to run every time `mavproxy.py` runs | |
In another directory (like `..`): | ||
|
||
```bash | ||
git clone [email protected]:mavlink/mavlink.git | ||
git clone [email protected]:mavlink/mavlink.git | ||
cd elixir-mavlink | ||
``` | ||
|
||
|
@@ -113,8 +111,7 @@ To generate a protocol file for APM: | |
|
||
```bash | ||
mkdir message_definitions | ||
cp ../mavlink/message_definitions/v1.0/\* message_definitions | ||
|
||
cp ../mavlink/message_definitions/v1.0/* message_definitions | ||
mix mavlink message_definitions/ardupilotmega.xml output/apm.ex APM | ||
``` | ||
|
||
|
@@ -140,4 +137,4 @@ defmodule TestLog do | |
end | ||
|
||
TestLog.start() | ||
``` | ||
``` |