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
Help AVSIM continue to serve you!
Please donate today!

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!

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