John Dowson Posted Friday at 10:51 AM Report Posted Friday at 10:51 AM 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
Reco Posted Friday at 10:53 PM Author Report Posted Friday at 10:53 PM 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
John Dowson Posted 21 hours ago Report Posted 21 hours ago 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
Reco Posted 12 hours ago Author Report Posted 12 hours ago 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
John Dowson Posted 57 minutes ago Report Posted 57 minutes ago 11 hours ago, Reco said: I just not sure in the text where to add the offset logging for offset 66D0 Offset logging is done via the right-hand side of the FSUIPC logging tab. However, you don't actually need that as the lua script logging is sufficient, as that will log any offsetchanges. Please also remove the comment characters from the other ipc.log statement: 11 hours ago, Reco said: --ipc.log("Milviz Bell uh1 redux ThrottleCollective-handling lua now running")
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now