Skip to content

Commit

Permalink
added 172 configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
wortelus committed Aug 30, 2022
1 parent 1227e4a commit 0888b2e
Show file tree
Hide file tree
Showing 64 changed files with 1,333 additions and 8 deletions.
846 changes: 846 additions & 0 deletions 172SP/actions.yaml

Large diffs are not rendered by default.

101 changes: 101 additions & 0 deletions 172SP/audio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
actions:
- index: 24
name: return
type: dir
icon: dir
label: MAIN DECK
- index: 0
name: MKRMUTE
type: single
icon: ap.mkr_mute
dataref: sim/cockpit2/radios/actuators/audio_marker_enabled
command-release: sim/annunciator/marker_beacon_mute_or_off
- index: 1
name: com1
type: single
icon: ap.com1
dataref: sim/cockpit2/radios/actuators/audio_selection_com1
command-release: sim/audio_panel/monitor_audio_com1
- index: 2
name: com2
type: single
icon: ap.com2
dataref: sim/cockpit2/radios/actuators/audio_selection_com2
command-release: sim/audio_panel/monitor_audio_com2
- index: 3
name: dme
type: single
icon: ap.dme
dataref: sim/cockpit2/radios/actuators/audio_dme_enabled
command-release: sim/audio_panel/monitor_audio_dme
- index: 4
name: nav1
type: single
icon: ap.nav1
dataref: sim/cockpit2/radios/actuators/audio_selection_nav1
command-release: sim/audio_panel/monitor_audio_nav1
- index: 5
name: nav2
type: single
icon: ap.nav2
dataref: sim/cockpit2/radios/actuators/audio_selection_nav2
command-release: sim/audio_panel/monitor_audio_nav2
- index: 6
name: adf1
type: single
icon: ap.adf1
dataref: sim/cockpit2/radios/actuators/audio_selection_adf1
command-release: sim/audio_panel/monitor_audio_adf1
- index: 7
name: adf2
type: single
icon: ap.adf2
dataref: sim/cockpit2/radios/actuators/audio_selection_adf2
command-release: sim/audio_panel/monitor_audio_adf2
- index: 8
name: sens
type: single
icon: ap.sens
dataref: sim/cockpit2/radios/actuators/marker_sens
command-release: sim/annunciator/marker_beacon_sens_toggle

#########################################################################################

- index: 9
name: com1mic
type: single
icon: ap.com1mic
dataref-states:
- 6.0
- 7.0
dataref: sim/cockpit2/radios/actuators/audio_com_selection # 6= com1mic 7=com2mic 6
command-release: sim/audio_panel/transmit_audio_com1
- index: 10
name: com2mic
type: single
icon: ap.com2mic
dataref-states:
- 6.0
- 7.0
dataref: sim/cockpit2/radios/actuators/audio_com_selection # 6= com1mic 7=com2mic
command-release: sim/audio_panel/transmit_audio_com2

###########################################################################################
-
- index: 16
name: mb_outer
type: none
icon: ap.omb
dataref: sim/cockpit/misc/over_outer_marker
- index: 17
name: mb_middle
type: none
icon: ap.mmb
dataref: sim/cockpit/misc/over_middle_marker
- index: 18
name: mb_inner
type: none
icon: ap.imb
dataref: sim/cockpit/misc/over_inner_marker


Binary file added 172SP/icons/PARK.BRAKE.0.0.png
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 172SP/icons/PARK.BRAKE.1.0.png
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 172SP/icons/ap.adf1.0.0.png
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 172SP/icons/ap.adf1.1.0.png
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 172SP/icons/ap.adf2.0.0.png
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 172SP/icons/ap.adf2.1.0.png
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 172SP/icons/ap.com1.0.0.png
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 172SP/icons/ap.com1.1.0.png
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 172SP/icons/ap.com1mic.6.0.png
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 172SP/icons/ap.com1mic.7.0.png
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 172SP/icons/ap.com2.0.0.png
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 172SP/icons/ap.com2.1.0.png
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 172SP/icons/ap.com2mic.6.0.png
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 172SP/icons/ap.com2mic.7.0.png
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 172SP/icons/ap.dme.0.0.png
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 172SP/icons/ap.dme.1.0.png
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 172SP/icons/ap.imb.0.0.png
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 172SP/icons/ap.imb.1.0.png
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 172SP/icons/ap.mkr_mute.0.0.png
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 172SP/icons/ap.mkr_mute.1.0.png
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 172SP/icons/ap.mmb.0.0.png
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 172SP/icons/ap.mmb.1.0.png
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 172SP/icons/ap.nav1.0.0.png
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 172SP/icons/ap.nav1.1.0.png
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 172SP/icons/ap.nav2.0.0.png
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 172SP/icons/ap.nav2.1.0.png
Binary file added 172SP/icons/ap.omb.0.0.png
Binary file added 172SP/icons/ap.omb.1.0.png
Binary file added 172SP/icons/ap.sens.0.0.png
Binary file added 172SP/icons/ap.sens.1.0.png
Binary file added 172SP/icons/flaps.flapsbckg.png
File renamed without changes
Binary file added 172SP/icons/tp.0.png
Binary file added 172SP/icons/tp.1.png
Binary file added 172SP/icons/tp.2.png
Binary file added 172SP/icons/tp.3.png
Binary file added 172SP/icons/tp.4.png
Binary file added 172SP/icons/tp.5.png
Binary file added 172SP/icons/tp.6.png
Binary file added 172SP/icons/tp.7.png
Binary file added 172SP/icons/tp.alt.png
Binary file added 172SP/icons/tp.clear.png
Binary file added 172SP/icons/tp.i.0.png
Binary file added 172SP/icons/tp.i.1.png
Binary file added 172SP/icons/tp.i.2.png
Binary file added 172SP/icons/tp.i.alt.png
Binary file added 172SP/icons/tp.i.ident alt.png
Binary file added 172SP/icons/tp.i.ident stby.png
Binary file added 172SP/icons/tp.i.ident.png
Binary file added 172SP/icons/tp.i.off.png
Binary file added 172SP/icons/tp.i.on.png
Binary file added 172SP/icons/tp.i.radar.png
Binary file added 172SP/icons/tp.i.stby.png
Binary file added 172SP/icons/tp.i.test.png
Binary file added 172SP/icons/tp.ident.png
Binary file added 172SP/icons/tp.off.png
Binary file added 172SP/icons/tp.on.png
Binary file added 172SP/icons/tp.stby.png
Binary file added 172SP/icons/tp.test.png
195 changes: 195 additions & 0 deletions 172SP/transponder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
actions:
- index: 0
name: ident
type: single
icon: tp.ident
command-release: sim/radios/transponder_ident
- index: 1
name: stby
type: single
icon: tp.stby
command-release: sim/transponder/transponder_standby
- index: 2
name: alt
type: single
icon: tp.alt
command-release: sim/transponder/transponder_alt
- index: 3
name: on
type: single
icon: tp.on
command-release: sim/transponder/transponder_on
- index: 4
name: off
type: single
icon: tp.off
command-release: sim/transponder/transponder_off
- index: 7
name: tp_test
type: single
icon: tp.test
command-release: sim/transponder/transponder_test
- index: 8
name: tpmode
type: none
file-names:
- tp.i.off
- tp.i.stby
- tp.i.on
- tp.i.alt
- tp.i.test
dataref-states:
- 0.0
- 1.0
- 2.0
- 3.0
- 4.0
dataref: sim/cockpit/radios/transponder_mode #0=off, 1=stby, 2=on, 3= alt, 4=test
- index: 9
name: tp_ident
type: none
file-names:
- none
- tp.i.ident
dataref-states:
- 0.0
- 1.0
dataref: sim/cockpit/radios/transponder_id
- index: 10
name: tp_radar
type: none
file-names:
- none
- tp.i.radar
dataref-states:
- 0.0
- 1.0
dataref: sim/cockpit/radios/transponder_light

###################### SQUAWK START

- index: 11
name: squawk1000
type: none
dataref: FlyWithLua/streamdeck_handler/squawk1000
display:
name: squwak1000
text-center:
x: center
y: 60
font-path: IBMPlexMono-Bold.ttf
font-size: 64
zero-pad: 1
min: 0
max: 9
step: 1
color: yellow
keep-decimal: False
background: none
- index: 12
name: squawk100
type: none
dataref: FlyWithLua/streamdeck_handler/squawk100
display:
name: squwak100
text-center:
x: center
y: 60
font-path: IBMPlexMono-Bold.ttf
font-size: 64
zero-pad: 1
min: 0
max: 9
step: 1
color: yellow
keep-decimal: False
background: none
- index: 13
name: squawk10
type: none
dataref: FlyWithLua/streamdeck_handler/squawk10
display:
name: squwak10
text-center:
x: center
y: 60
font-path: IBMPlexMono-Bold.ttf
font-size: 64
zero-pad: 1
min: 0
max: 9
step: 1
color: yellow
keep-decimal: False
background: none
- index: 14
name: squawk1
type: none
dataref: FlyWithLua/streamdeck_handler/squawk1
display:
name: squwak1
text-center:
x: center
y: 60
font-path: IBMPlexMono-Bold.ttf
font-size: 64
zero-pad: 1
min: 0
max: 9
step: 1
color: yellow
keep-decimal: False
background: none

###################### SQUAWK End

- index: 15
name: tp.clear
type: single
icon: tp.clear
command-release: sim/transponder/transponder_CLR
- index: 16
name: tp.0
type: single
icon: tp.0
command-release: sim/transponder/transponder_digit_0
- index: 17
name: tp.1
type: single
icon: tp.1
command-release: sim/transponder/transponder_digit_1
- index: 18
name: tp.2
type: single
icon: tp.2
command-release: sim/transponder/transponder_digit_2
- index: 19
name: tp.3
type: single
icon: tp.3
command-release: sim/transponder/transponder_digit_3
- index: 20
name: tp.4
type: single
icon: tp.4
command-release: sim/transponder/transponder_digit_4
- index: 21
name: tp.5
type: single
icon: tp.5
command-release: sim/transponder/transponder_digit_5
- index: 22
name: tp.6
type: single
icon: tp.6
command-release: sim/transponder/transponder_digit_6
- index: 23
name: tp.7
type: single
icon: tp.7
command-release: sim/transponder/transponder_digit_7
- index: 24
name: return
type: dir
icon: dir
label: MAIN DECK
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ This software includes rich set of features for robust control of the simulator
Developed with the idea taking away mouse controlling of most of the cockpit,
works best together with other simulator peripherals (e.g. radio, A/P panel etc.)

**Note that configuration was done for 737 NG by Zibo only for now.**
**Supported planes:**
- Boeing 737 NG by **Zibo**
- Cessna 172 by Laminar Research

**Currently supporting**:
- Stream Deck Mini
- Stream Deck MK1 (MK2 should work too)
- Stream Deck XL (tested)
Working across all Stream Deck versions, but ready to use configurations are made for the XL version.

### Features:
- Sync with X-Plane's dataref to visually depict the actual state
Expand Down Expand Up @@ -75,12 +74,15 @@ from the official documentation source
number** and number of keys according to your model.
- Execute the xplane-streamdeck script to find the serial number out
- Check the font, IP addresses / ports and X-Plane's UDP server status in case of a problem
7. **Add the `streamdeck_handlers.lua` to `X-Plane 11\Resources\plugins\FlyWithLua\Scripts`**
7. **Add the streamdeck handlers to `X-Plane 11\Resources\plugins\FlyWithLua\Scripts`**
- Ensure you have **FlyWithLua** installed
- Copy the streamdeck_handler_*[plane code]*.lua files from the `misc/` directory

## Usage
Instructions for **Windows**

Choose desired plane type configuration in `config.yaml`

**Execute the script by running the `main.py` with Python 3 by:**

running `.../xplane-streamdeck> python .\main.py` under the *xplane-streamdeck* directory,
Expand Down Expand Up @@ -115,9 +117,8 @@ to always see the up-to-date configuration state (or simply remove it, but the c
**Refer to the `B737-800X/README.md` for a guide on how to create/edit buttons.**

### What is planned / WIP?
- More types of labels
- Backward compatible GUI Drag 'n Drop utility for managing the plane presets
- Own X-Plane UDP handler
- Multi deck support

### Known Issues
- There is currently a bug in **pyxpudpserver** that sometimes causes the dataref updating of buttons to
Expand Down Expand Up @@ -150,6 +151,10 @@ IBM Plex™ is an international typeface family designed by Mike Abbink, IBM BX&
an independent Dutch type foundry. Plex was designed to capture IBM’s spirit and history, and to illustrate the
unique relationship between mankind and machine—a principal theme for IBM since the turn of the century.

### Contributors
I would like to thank the following members of the flight sim community for participating in this open source project.
- **esmiol** from *x-plane.org* forums - for creating the Cessna 172 configuration and graphics

## License
BSD 2-Clause License

Expand Down
Loading

0 comments on commit 0888b2e

Please sign in to comment.