This repository has been archived by the owner on Dec 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from hamishwillee/hgw_mocklink
Add instructions for using Mock Link
- Loading branch information
Showing
5 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -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. | ||
|
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 |
---|---|---|
@@ -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. |