Jump to content

Archived

This topic is now archived and is closed to further replies.

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.


Boeing777_Banner_Pilot.jpg

Russell Homan

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


Boeing777_Banner_Pilot.jpg

Russell Homan

Share this post


Link to post
Share on other sites

  • 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.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    18%
    $4,640.00 of $25,000.00 Donate Now
×
×
  • Create New...