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