Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #16 from hamishwillee/hgw_mocklink
Browse files Browse the repository at this point in the history
Add instructions for using Mock Link
  • Loading branch information
hamishwillee authored May 23, 2017
2 parents 335af2e + e45eef0 commit e6a3382
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
Binary file added assets/tools/mocklink_connected.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/tools/mocklink_waiting_for_connection.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions en/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* [Survey](file_formats/survey.md)
* [Rally Points](file_formats/rally.md)
* [GeoFence](file_formats/fence.md)
* [Developer Tools](tools/README.md)
* [Mock Link](tools/mock_link.md)
* [Code Submission](contribute/README.md)
* [Coding Style](contribute/coding_style.md)
* [Unit Tests](contribute/unit_tests.md)
Expand Down
10 changes: 10 additions & 0 deletions en/tools/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Developer Tools

*QGroundControl* makes a number of tools available in debug builds. These ease common developer tasks including setting up simulated connections for testing, and accessing the System Shell over MAVLink.

> **Note** [Build the source in debug mode](https://github.com/mavlink/qgroundcontrol#supported-builds) to enable these tools.
Tools include:

* [Mock Link](../tools/mock_link.md) - Creates and stops multiple simulated vehicle links.

32 changes: 32 additions & 0 deletions en/tools/mock_link.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Mock Link

*Mock Link* allows you to create and stop links to multiple simulated (mock) vehicles in *QGroundControl* debug builds.

The simulation does not support flight, but does allow easy testing of:

* Mission upload/download
* Viewing and changing parameters
* Testing most setup pages
* Multiple vehicle UIs

It is particularly useful for unit testing error cases for mission upload/download.

## Using Mock Link

To use *Mock Link*:

1. Create a debug build by [building the source](https://github.com/mavlink/qgroundcontrol#supported-builds).
1. Access *Mock Link* by selecting the *Application Settings* icon in the top toolbar and then **Mock Link** in the sidebar:

![](../../assets/tools/mocklink_waiting_for_connection.jpg)

1. The buttons in the panel can be clicked to create a vehicle link of the associated type.

* Each time you click a button a new connection will be created.
* When there is more than one connection the multiple-vehicle UI will appear.

![](../../assets/tools/mocklink_connected.jpg)

1. Click the **Stop one Mock Link** to stop the currently active vehicle.

Using *Mock Link* is then more or less the same as using any other vehicle, except that the simulation does not allow flight.

0 comments on commit e6a3382

Please sign in to comment.