This are the (new) Support Forums for FSUIPC and related products.

These forums replace the old support forums which have been running for 20+ years. The old forums contain a wealth of information on all FSUIPC products, and are still available (until the end of the year) for read-only here.

At the moment these new forums are quite empty – I will be updating the FAQ section and copying across the User Contributions from the old forums in the next few months.

Please note that you will need to Register and Login to post for support, and also to download attachments. You can view these forums without registering.

Support is also available via Discord. Please use the following invite link to join the FSUIPC Discord server:
https://discord.gg/zjwUTrxmmE

IRS Button assignme…
 
Notifications
Clear all

IRS Button assignment for PMDG

Posts: 19
Registered
Topic starter
(@skythelimit)
Joined: 3 weeks ago

Thx John, looking at my log, I think the issue is caused because x3110 and x3114  are getting written to from my script a large amount by my flap and speedbrake levers, as the pot values jitter, and every time they change the script sends to these offsets.

But given the flap and speedbrake work fine, the issue is just with the IRS buttons, so I could send these buttons a different way from my script to fsuipc.  For example, I could get the script to do a keypress and then assign this in fsuipc to the PMDG event.  Or even better, can you send to a virtual button so then I can assign this in fsuipc under Buttons?


Reply
Posts: 173
Moderator
(@fsuipc-support)
Joined: 3 months ago

You could try either…you can trigger a virtual button by writing to the virtual button offsets. Unfortunately I am away from my PC for the next few days, back Sunday evening. I can help yiu further then, but check the iffset status document for the virtual button area.

John


Reply
Posts: 19
Registered
Topic starter
(@skythelimit)
Joined: 3 weeks ago

Hi John, I’m trying to set virtual button for the IRS knob, which has 5 positions (TEST, TKGS, WIND, PPOS, HDG).  When I turn the knob, my sioc script writes to this offset x3340 and sets the bit respectively, be it bit 0,1,2,3 or 4.

If bit 0 is TEST and bit 1 is TKGS, when I move the knob from TEST to TKGS, I would Setbit 1, but do I also need to release (ie Clearbit) bit 0?  Otherwise I assume the bit will stay at 1 (on).

And if I move to WIND, I would Setbit 2 and Clearbit 1 (and probably a good idea to Clearbit 3 as well because you could be moving the knob from WIND to TKGS instead of TEST to TKGS?)

OR maybe easier – maybe it would be better to do the Clearbit in the FSUIPC Buttons page, ie for TEST I would set button ON as the PMDG Control + Parameter and for button RELEASE I would set Clearbit 0

Charles


Reply
Posts: 173
Moderator
(@fsuipc-support)
Joined: 3 months ago

Yes, you would need to clear all the other bits when you you set one of the bits, otherwise you wouldn’t be able to set it again when required. And better to do this by just writing the correct value. If you update offset 3340 as a 4-byte/32-bit number, writing the values 1,2,4 & 8 should set the appropriate bit and clear the rest.


Reply
Page 3 / 3