pilotclient icon indicating copy to clipboard operation
pilotclient copied to clipboard

Use Flightgears PTT hotkeys for swift

Open hbeni opened this issue 1 year ago • 4 comments

Hi, According to the comment:

Separate COM volumes can now be set in the UI and can be controlled from G and XP. Available with 0.9.7.149 and 0.9.8.36 (or later).

Originally posted by @ltoenning in https://github.com/swift-project/pilotclient/issues/100#issuecomment-1016238931

Controlling the COM volume should be possible by the insim values. And indeed, they seem to be transmitted to swift: grafik

I did just connect my first time to VATSIM and listened to radio calls from EDDM, which worked fine. However, the incoming radio messages where always the same volume, regardless what I did set in FlightGear. Changing them in swifts gui did work.

What am I doing wrong? (or is there something broken?)


Also just as an idea; flightgear has built in PTT buttons. That could be used as PTT enabling the radios in swift, so for example simulation of the C182s' GMA340 audio panel (or other aircraft simulating complex audio panels) could be supported.

hbeni avatar Dec 17 '23 22:12 hbeni

OK.... nevermind, sorry for the noise.

I had "COM integration" not enabled. Ticket that and it worked. grafik


InSim PTT does still not work, however.

hbeni avatar Dec 17 '23 22:12 hbeni

InSim PTT does still not work, however.

(I do not talk about the PTT hotkey binding in swift; which needs read access to /dev/input/event* (provided by group inputin debian 12); but the /controls/radios/comm-ptt/ FGCom property, which contains:

/controls/radios/comm-ptt/ Bedeutung
0 kein TX
1 TX COM1
2 TX COM2

hbeni avatar Dec 17 '23 23:12 hbeni

/controls/radios/comm-ptt/ Bedeutung 0 kein TX 1 TX COM1 2 TX COM2

This would indeed be an interesting feature. But it would also require internal changes to the simulator plugin interface because this feature is not implemented for any simulator so far. We'll keep it on the list :+1:

which needs read access to /dev/input/event* (provided by group inputin debian 12

Just as a side note: We recently updated our docs regarding this. We now recommend a different method to allow reading input from a specific device using udev rules for security reasons (see https://swift-project.org/troubleshooting/linux_hotkeys/)

ltoenning avatar Dec 18 '23 07:12 ltoenning

Thank you!

hbeni avatar Dec 18 '23 08:12 hbeni