Jump to content
The simFlight Network Forums

Recommended Posts

Posted
13 hours ago, Reco said:

the throttle now moves in the correct direction but I won't rotate back to  idle 

Activate the logging in the lua script (remove comment characters from 'ipc.log' line) and add offset logging for offset 66D0, then test and show me your FSUIPC4.log & FSUIPC4.ini files. For the test, first move the throttle from idle to full and back again, and then exit FSX/FSUIPC4 before attaching the files.

John

Posted

Hi 

Here are the two files, hopefully I have captured the correct data for you

I know you mentioned  invalid button assignments in the dodsim -{}- They are assigned and work. I wonder if it is the event file that I am using that the buttons don't show up like the in Milviz MD530 and the Bell U-1C.

Cheers 

Rhys 

FSUIPC4.1.log FSUIPC4.ini

Posted
13 hours ago, Reco said:

Here are the two files, hopefully I have captured the correct data for you

No, you did not set the correct logging., You have activated lua debug logging - I did not request this and it is not needed, please remove this. As I said, you just need to uncomment the 'ipc.log' line entry in the BellUH1Throttle.lua file. You also did not add the offset logging, and the log file shows no movement in the throttle (or the lua debug logging is not showing this).

You also forcibly closed the log and started a new one. Please don't do this.

Please set the logging as requested and show me those files again. Please exit FSX/FSUIPC before attaching logs, and do not request a new log file..

John

Posted

Hi John

Thank you for your help and please forgive me if I am making things frustrating for you which is not my intention. Between my dyslexia and a ADHD I am as frustrated with  figuring this out as you are as I try to implement your instructions 

here is the Lua script with the ipc,log uncomment out but I just not sure in the text where to add the offset logging for offset 66D0

 

local ThrottleOffset = 0x66D0

function throttleControl(offset, value)
   -- Calibrate value from range -16384 - +16384 to 0-100
  -- NB if the lvar range is fifferent, change this, e.g. if the range is 0-1, use
  --        newValue = (value + 16384) / 32768
  newValue = (16384 - value) / 327.68
  ipc.log("Throttle axis value is " .. value .. " resulting in lvar value " .. newValue)
  
  -- send value to lvar
  ipc.writeLvar("L:UH1_THROTTLE", newValue)
  
end

event.offset(ThrottleOffset, "SD", "throttleControl")

--ipc.log("Milviz Bell uh1 redux ThrottleCollective-handling lua now running")

 

Regards 

Rhys 

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.