Board index FlightGear Support Hardware

Saitek Switch Panel Driver

Joysticks, pedals, monitors.

Saitek Switch Panel Driver

Postby daibach142 » Tue Aug 03, 2021 4:28 pm

This is a new implementation of my driver for the Saitek Switch Panel, and is available for Windows and Linux.
The source language is Rust, and is code-indentical for Windows and Linux.
It is here:https://github.com/daibach142/SaitekSwitch.

There is a similar driver for the Saitek Radio Panel, here https://github.com/daibach142/SaitekRadio

My thanks to robertfm and to shrike for assistance with these projects.
Dave
daibach142
 
Posts: 40
Joined: Wed May 16, 2018 12:54 am
Location: EGNR
Version: 2020 3.13
OS: Ubuntu 22.04

Re: Saitek Switch Panel Driver

Postby Isaak » Wed Aug 04, 2021 12:13 pm

Hi Dave, I'm currently configuring your switch panel driver on Windows. Thanks a lot for you work, after more than 8 years my panel finally switched some buttons in FlightGear. I'm trying to set up a custom xml, but can't seem to get it recognised by the program.

In Powershell I do the following steps:
1) cd F:\Dropbox\FlightGear\Plugins\SaitekSwitch-main
2) saitekswitch.exe <F:\Dropbox\FlightGear\Plugins\SaitekSwitch-main\data\777.xml>

I then get this error:
Code: Select all
At line:1 char:18
+ saitekswitch.exe <F:\Dropbox\FlightGear\Plugins\SaitekSwitch-main\dat ...
+                  ~
The '<' operator is reserved for future use.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : RedirectionNotSupported


Do you have any idea how I can fix this issue?

Thanks a lot for you help!
Want to support medical research with your pc? Start Folding at Home and join team FlightGear!
Isaak
 
Posts: 768
Joined: Sat Jun 04, 2011 3:52 pm
Location: Hamme, Belgium
Pronouns: he, him
Callsign: OO-ISA
Version: next
OS: Windows 10

Re: Saitek Switch Panel Driver

Postby daibach142 » Wed Aug 04, 2021 12:16 pm

The <> brackets should not be present - use
saitekswitch.exe F:\Dropbox\FlightGear\Plugins\SaitekSwitch-main\data\777.xml

They are just used to indicate the (optional) argument
Dave
daibach142
 
Posts: 40
Joined: Wed May 16, 2018 12:54 am
Location: EGNR
Version: 2020 3.13
OS: Ubuntu 22.04

Re: Saitek Switch Panel Driver

Postby Isaak » Wed Aug 04, 2021 12:29 pm

Thanks! Works like a charm!
Want to support medical research with your pc? Start Folding at Home and join team FlightGear!
Isaak
 
Posts: 768
Joined: Sat Jun 04, 2011 3:52 pm
Location: Hamme, Belgium
Pronouns: he, him
Callsign: OO-ISA
Version: next
OS: Windows 10

Re: Saitek Switch Panel Driver

Postby daibach142 » Wed Aug 04, 2021 12:36 pm

May we could add additional aircraft configurations to the Github?
Dave
daibach142
 
Posts: 40
Joined: Wed May 16, 2018 12:54 am
Location: EGNR
Version: 2020 3.13
OS: Ubuntu 22.04

Re: Saitek Switch Panel Driver

Postby Isaak » Wed Aug 04, 2021 1:06 pm

I'll send one when I 'm finished. The one I'm making now is a bit custom because I built an OH-panel myself and use the light switches for other purposes. I still have to make a nasal file to control some more custom commands. I'll keep you posted!
Want to support medical research with your pc? Start Folding at Home and join team FlightGear!
Isaak
 
Posts: 768
Joined: Sat Jun 04, 2011 3:52 pm
Location: Hamme, Belgium
Pronouns: he, him
Callsign: OO-ISA
Version: next
OS: Windows 10

Re: Saitek Switch Panel Driver

Postby daibach142 » Wed Aug 04, 2021 4:01 pm

Hi Isaak
Use whatever you need - I'll be interested in seeing your nasal scripts, too

Regards
Dave
daibach142
 
Posts: 40
Joined: Wed May 16, 2018 12:54 am
Location: EGNR
Version: 2020 3.13
OS: Ubuntu 22.04

Re: Saitek Switch Panel Driver

Postby daibach142 » Fri Aug 06, 2021 11:12 pm

An updated version (Version 1.2.0) of the program is now available, fixes some issues with the configuration files and changes the default configuration file.

All at the same address: https://github.com/daibach142/SaitekSwitch
Dave
daibach142
 
Posts: 40
Joined: Wed May 16, 2018 12:54 am
Location: EGNR
Version: 2020 3.13
OS: Ubuntu 22.04

Re: Saitek Switch Panel Driver

Postby Robertfm » Thu Dec 23, 2021 5:39 pm

Revisiting this to thank Dave for the tremendous amount of work he has done adapting codes and XML's to allow my saitek radios and switch panel to work on the PA28 Warrior 11 161 with custom use of certain keys on the switch panel to activate and deactivate the KAP140 AP with the addition of using Easy Click Macros I can control most AP functions from the panel or a macro panel. If you have Saitek Kit currently not being used look up Dave's Github. If I can do it anyone can. Dave has been remarkably patient with me.

Merry Christmas to you all and let's hope 2022 is better than 2020/1.
Robertfm
 
Posts: 1721
Joined: Thu Apr 25, 2019 5:56 pm
Callsign: RFM1
Version: 2020.3.11
OS: W10 v 19041.746


Return to Hardware

Who is online

Users browsing this forum: No registered users and 9 guests