BMS2Target: BMS to Thrustmaster HOTAS LED Controller (Viper Mission Pack and Viper Panel)
-
@scubapics PAPI lights would be cool. Couldn’t find anything in FlightData.h which makes sense, because it actually isn’t “FlightData”.
And of course, prereq are an issue (not be available on every ariport? ATC switch them on? Visible at which range? weather/viewing conditions? Dependend on NAV mode or no?). But at least it would be something not already there without cheating to much.
-
-
@scubapics Another fantastic work thanks man
-
-
Could you add a version number for your application BMS2Target? Hard to know which version is currently running. Would be very nice to have a version number for “BMS2Target.exe”.
May be there is already an option that I’m not aware of to get this application version number?
It would be nice also is this executable “version number” appear in the “black cmd screen” when starting your app…
This software is very cool! Nice job scubapics! It work very well for me, I really enjoy it.
Thank you so much! -
@101-Spyder Sure. I’ll add it for the next release.
-
For the life of me, I can’t get it to work. Could you post the procedure, step by step, in check list form since we are all simmers here?
-
@skippermike said in BMS to Thrustmaster ViperTQS LED Controller:
For the life of me, I can’t get it to work. Could you post the procedure, step by step, in check list form since we are all simmers here?
If you share the output of the TARGET script editor console window (select all the text, copy, paste to a file share the file here) I can see what you may have got wrong. Also the output of the BMS2Target console window.
-
download both files provided b scubapicsin the 1st post of this thread. Place them where you store your Thrustmaster configuration files usually. Mine are located at C:\Users\r00t\Documents\Thrustmaster HOTAS Configurations\F16 - Falcon BMSDownload and install T.A.R.G.E.T Software if not already done:https://support.thrustmaster.com/en/product/viper-tqs-mission-pack-en/Open the T.A.R.G.E.T Script Editor. If you choose defaults while installing the T.A.R.G.E.T. Software, the script editor should be located at C:\Program Files (x86)\Thrustmaster\TARGET\x64in the Script Editor click on “Menu > Open” and select the ViperTQSLEDSync.tmc you downloaded in step 1
Resized:
You generally don’t need to do anything in the code. You just need to click on the green “RUN” Button
which results in
Run the BMS2Target.exe executable. It should connect to the script editor listening on tcp-2323. It will log that to stdout of the window that pops up:
Note: the exe is not signed, windows might moan about it and refuse to start it. You need to trust scubapics exe (i.e. instruct windows in the dialogue to run the exe because you know better).
Start Falcon BMS. The window you started in the step before should now read somethin like the below (connected to target, connected to BMS and the states it is aware of).
As soon as it’s fired up and the shared memory is provided by the process the BMS2Target.exe will read from the shared memory and push the data to the T.A.R.G.E.T. software via tcp. You can see this in the DEBUG output window of the T.A.R.G.E.T script editor (u00000000000: 12 bytes received):
As soon as you change something on the device that triggers (gear handle or one of the four TWA buttons), the logging in both windows should reflect that. If in doubt, start a navigation training mission and fiddle around with your shiny toys.
-
@r00t thanks. I was too hung over today to do anything coherently sensible.
-
-
@scubapics I was doing exactly what @r00t says and I got this error message:
Error:(internal) cannot associate a filter with the selected USB HID device “VID_044F&PID_0412”
Runtime Error: STOP request received while running main on line 87 in “C:\Program Files (x86)\Thrustmaster\TARGET\scripts\ViperTQSLEDSync.tmc”
Error:Script run timed out!The TQS goes dark and the only way I could find to turn it back on is to restart my PC. The app cannot connect (as expected).
-
@skippermike said in BMS2Target: BMS to Thrustmaster HOTAS LED Controller (Viper Mission Pack and Viper Panel):
@scubapics I was doing exactly what @r00t says and I got this error message:
Error:(internal) cannot associate a filter with the selected USB HID device “VID_044F&PID_0412”
Runtime Error: STOP request received while running main on line 87 in “C:\Program Files (x86)\Thrustmaster\TARGET\scripts\ViperTQSLEDSync.tmc”
Error:Script run timed out!The TQS goes dark and the only way I could find to turn it back on is to restart my PC. The app cannot connect (as expected).
The line with “Error: (internal)” is a fault between TARGET and the device. That’s not something I have caused or can fix. It is an internal TARGET fault. Which version of the TARGET script editor have you installed? You may find using the latest version solves your problem. It should be v3.0.23.1003.
-
Ok. So between now and Monday, I am “in between jobs”. So if anyone has any suggestions for the other LEDs on the ViperTQS… I’m all ears!
Warp factor gauge?
-
My question is, can you run Target for the indicator lights and still use the Alt Launcher Keymapping at the same time?
-
@MailMan
Short answer: Yes, in fact that is the preferred method.From the original post: "The TARGET script does not configure your ViperTQS for use with BMS. It merely controls the LEDs of the ViperTQS. If you are using a TARGET script to map your device to BMS, I advise you to use the Alternative Launcher instead. "
R/,
TC2 -
Is there any way the lights can LED’s can be used without having to use Target?
or would that require further development of the AL itself?Regards,
Gary
-
@Gary
Short answer: Thrustmaster LEDs can only be controlled using TARGET or Target scripts.The LEDs on the Thrustmaster sticks/TQS are proprietary to Thrustmaster. Only Thrustmaster proprietary software (i.e., T.A.R.G.E.T.) or TARGET scripting can control their function. The LEDs have nothing to do with the BMS Alternate Launcher - AL cannot control the output of Thrustmaster LEDs.
The brilliance of @scubapics coding is that he was able to monitor Falcon BMS active memory to determine when certain effects happen during flight, and pass the fact that those events happened to the TARGET script, which tells the Thrustmaster LEDs what to do when those events happen.
Regards,
TC2 -
@Tomcattwo said in BMS2Target: BMS to Thrustmaster HOTAS LED Controller (Viper Mission Pack and Viper Panel):
@Gary
Short answer: Thrustmaster LEDs can only be controlled using TARGET or Target scripts.The LEDs on the Thrustmaster sticks/TQS are proprietary to Thrustmaster. Only Thrustmaster proprietary software (i.e., T.A.R.G.E.T.) or TARGET scripting can control their function. The LEDs have nothing to do with the BMS Alternate Launcher - AL cannot control the output of Thrustmaster LEDs.
The brilliance of @scubapics coding is that he was able to monitor Falcon BMS active memory to determine when certain effects happen during flight, and pass the fact that those events happened to the TARGET script, which tells the Thrustmaster LEDs what to do when those events happen.
Regards,
TC2Thank you.
-
Hello is there any ready profile to load with target for viper panel?
I am facing an issue I cannot map all of the buttons
For example AUTOPILOT OFF -
@spserg the best way to do it is via the BMS launcher (formerly known as Alternative Launcher). For some switches you have to use the release function to make them work.