Skip to content

Commit

Permalink
update test docs for clean setup
Browse files Browse the repository at this point in the history
Update docs for after yet another 'clean' install.
  • Loading branch information
mynameisrufus authored Oct 27, 2019
1 parent c2ca531 commit a00ffac
Showing 1 changed file with 20 additions and 23 deletions.
43 changes: 20 additions & 23 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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
Expand All @@ -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
```

Expand All @@ -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
```

Expand All @@ -140,4 +137,4 @@ defmodule TestLog do
end

TestLog.start()
```
```

0 comments on commit a00ffac

Please sign in to comment.