Code Monkey home page Code Monkey logo

vkb-msfs-led's Introduction

VKB FSM-GA LED bridge for MSFS

Steps to run:

  1. Install Python 3.8.11 Windows installer 64-bit (You can try other versions at your own risk!)
  2. Install Microsoft Visual C++ Build Tools, choose "MSVC v140 - VS 2015 C++ build tools (v14.00)" and one of the "Windows 10 SDK" (for building USB interface extensions)
  3. run python3 -m pip install venv
  4. change to the directory you checked out this repository
  5. run python3 -m venv .
  6. run python3 -m pip install -r requirements.txt
  7. run copy RequestList.py Lib\site-packages\SimConnect\RequestList.py
  8. run copy vkb_device_init.py Lib\site-packages\vkb\devices\__init__.py
  9. run copy vkb_led_init.py Lib\site-packages\vkb\led\__init__.py
  10. run copy nxtext.py Lib\site-packages\vkb\devices\nxtext.py
  11. run python3 vkb-msfs-leds.py after you started MSFS.

When you running python3 -m pip install -r requirements.txt, you may encounter LINK : fatal error LNK1158: cannot run 'rc.exe'. If this occurs, add Windows SDK bin directory to your path, like: set PATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64;%PATH% (your Windows SDK version may be different, be sure to confirm it)

RequestList.py added some new datas in MSFS, namely AUTOPILOT_ALTITUDE_ARM, AUTOPILOT_APPROACH_ARM, AUTOPILOT_APPROACH_ACTIVE, AUTOPILOT_APPROACH_CAPTURED, AUTOPILOT_GLIDESLOPE_ARM and AUTOPILOT_GLIDESLOPE_ACTIVE.

vkb_device_init.py and nxtext.py added hardware ID of NXT EXT USB-HID.

vkb_led_init.py changes how much LED configs can be updated in single pass (yeah this is probably problemsome and I should use other ways)

You'll need to use VKBDevCfg to change LED mode of all LEDs on FSM-GA to OFF, or they will behave erraticly (the program can't override LED presets defined with VKBDevCfg). They should show dim green after power up but not turn red when you push the buttons.

You may need to edit vkb-msfs-leds.py and change FSM_LED_BASE to the ID of first LED on your FSM-GA. It may differ depend on how you connect these modules. I have a SEM and it occupied led number 10-17. Check VkbDevCfg's Global -> External -> External Devices -> FSM.GA and see the Base to the right ofr LedsN.

vkb-msfs-led's People

Contributors

tiberiusteng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.