Skip to content

Commit 804cea9

Browse files
committed
Add user guide
1 parent 185dca4 commit 804cea9

File tree

2 files changed

+75
-2
lines changed

2 files changed

+75
-2
lines changed

README.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
This is a plugin for Elgato Stream Deck to interface with flight simulators via SimConnect.
44

5-
### Manual Installation
5+
The current code target x64 and the latest SimConnect from Microsoft Flight Simulator.
6+
However, if you compile for x86 and reference SimConnect SDK from FSX, this plugin should also work with FSX and P3D.
67

7-
Copy the output to `%appdata%\Elgato\StreamDeck\Plugins\tech.flighttracker.streamdeck.sdPlugin` and restart Stream Deck software.
8+
### For Users
9+
10+
If you just want to use the plugin with your Stream Deck, take a look at [User Guide](docs/USERGUIDE.md).
11+
12+
### For Developers
13+
14+
#### Manual Installation
15+
16+
Copy the output to `%appdata%\Elgato\StreamDeck\Plugins\tech.flighttracker.streamdeck.sdPlugin` and restart Stream Deck software. You can find a deploy.bat file that does the same thing.
17+
18+
### TODO
19+
20+
- [ ] Data list for generic button
21+
- [ ] Sample profile

docs/USERGUIDE.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
## User Guide for Flight Tracker Stream Deck Plugin
2+
3+
### Installation
4+
5+
1. Download latest version from https://github.com/nguyenquyhy/Flight-Tracker-StreamDeck/releases
6+
1. Double click the file `tech.flighttracker.streamdeck.streamDeckPlugin` to install
7+
- If you manually created the folder `tech.flighttracker.streamdeck.sdPlugin` previously in `%appdata%\Elgato\StreamDeck\Plugins`, there will be an error saying "This custom action is already installed." although you won't see it in More Actions list. In this case you will need to manually remove that folder before trying again.
8+
1. Accept the prompt to install the plugin and the profiles. The profile is a hidden numpad, allowing you to enter COM/NAV frequency.
9+
1. You should now see Flight Tracker group in your list of button.
10+
11+
### Usage
12+
13+
#### Notes
14+
15+
At the moment, there are 2 groups of buttons:
16+
17+
| Group | Pro | Con |
18+
|-------|-----|-----|
19+
| **Generic** | Potentially work with any SimConnect variables of the correct type | Need to look up the variable's and event's name |
20+
| **Prebuilt** | Specifically designed for certain variables, so setting up is mostly just drag-and-drop<br />Has special functionality such as holding COM/NAV button to open numpad | Large number of buttons in the button list<br />Require development effort to add more buttons with similar functionality |
21+
22+
We are looking at combining the 2 groups to simplify the experience. This might lead to the removal of some existing buttons, but there will certainly be replacement, and hopefully it won't take too much time to setup those buttons again.
23+
24+
#### Buttons
25+
26+
##### Generic Toggle Button
27+
28+
This is the most powerful button in the plugin. However, with great power comes great responsibility: you have to do a bit of setting up for the parameters:
29+
30+
| Parameter | Description | Example |
31+
|-----------|-------------|---------|
32+
| Title | This is the built-in title of any Stream Deck button. We hide this by default. You should consider using the next parameter instead. | *Empty* |
33+
| Header | This is similar to title but with a pre-defined font, size and position that looks nice on the button. | HDG |
34+
| Toggle value | The event that get triggered when the button is clicked. <br />You can find the event ID from http://www.prepar3d.com/SDKv2/LearningCenter/utilities/variables/event_ids.html or MSFS SDK docs. | KEY_AP_PANEL_HEADING_HOLD |
35+
| Feedback value | The sim variable (Bool unit) that indicate if the button is *active* or not. Active state will show a green light on the button if `Display value` below is not set, or a green number otherwise.<br />You can find the variables at http://www.prepar3d.com/SDKv2/LearningCenter/utilities/variables/simulation_variables.html or MSFS SDK docs. | AUTOPILOT HEADING LOCK |
36+
| Display value | The sim variable (any numeric unit) to display as a number below header.<br />You can find the variables at http://www.prepar3d.com/SDKv2/LearningCenter/utilities/variables/simulation_variables.html or MSFS SDK docs. | AUTOPILOT HEADING LOCK DIR |
37+
38+
##### Generic Gauge
39+
40+
This button is very similar to Generic Toggle Button except from it does not have an active state, hence no `Feedback value` parameter is needed.
41+
42+
`Minimal value` and `Maximum value` are compulsory, indicating the range of the `Display value`.
43+
44+
##### Other buttons
45+
46+
| Button | Display | Tap | Hold |
47+
|--------|---------|-----|------|
48+
| NAV & COM | Active & standby frequency | Swap frequencies | Show numpad to enter frequency |
49+
| AP Master | AP Master status | Toggle AP Master | |
50+
| AP Heading | AP Heading status & value | Toggle AP Heading | Sync current heading |
51+
| AP Nav | AP Nav status | Toggle AP Nav |
52+
| AP Approach | AP Approach status | Toggle AP Aproach |
53+
| AP Altitude | AP Altitude status | Toggle AP Altitude |
54+
| AP Heading/Altitude Increase/Decrease | Static +/- sign | Increase/Decrease by 1 | Increase/Decrease by 10
55+
56+
### Known Issues
57+
58+
- If you spam the same buttons too quickly, SimConnect will get error and stop responding to any further command. The plugin will try to automatically reconnect.
59+
- However, if you see the message "Connected to Flight Simulator" flashing constantly in the sim, the plugin might be in a infinitely retry loop. In this case, close Stream Deck software on your PC (which will kill the plugin), wait a couple of seconds for all the SimConnect connections to close, and re-open Stream Deck.

0 commit comments

Comments
 (0)