Jump to content
Sign in to follow this  
rmhoman

Saitek Proflight FSUIPC button programing

Recommended Posts

So, I don't have a set of rudder pedals. Just can't afford them right now. I do have A2A's 172 and have been using autorudder but want to get a little more control so I programmed buttons 6&7 on the yoke as my rudder buttons with auto center when released. I am wondering if there is anyway to slow the move back to center. Right now it slams back to center and is causing some issues.

Share this post


Link to post
Share on other sites

I am wondering if there is anyway to slow the move back to center. Right now it slams back to center and is causing some issues.

 

You could do it with a Lua script that you would call from your button release event. This would just be a loop that winds your rudder back to the centre, maybe with some delays built in. Something like this:

local OFST_RUDDER = 0xBBA

local RudderPos = ipc.readUW(OFST_RUDDER)  -- Range -16383 to +16383

while RudderPos ~= 0 do
    if RudderPos < 0 then
        RudderPos = RudderPos + 1
    else
        RudderPos = RudderPos - 1
    end
    ipc.writeUW(OFST_RUDDER, RudderPos)
    if abs(RudderPos) % 16 == 0 then ipc.sleep(1) end  -- Delay 1ms, a maximum of (16384 / 16) times
end

This would centre the rudder from full deflection in about a second. I have not tried it so you will need to tinker!


MarkH

gGzCVFp.jpg
Core i7-7700K / 32Gb DDR4 / Gigabyte GTX1070 / 1080p x 3 x weird / Win7 64 Pro

Share this post


Link to post
Share on other sites

hmm never thought of being able to do something like this. yeah I will give it a try. It is better than nothing. Thanks a bunch

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...