Pete, thanks for the direction. As a newbie Lua programmer, I was able to hack together the code below. I read the x and right joystick inputs, converted into usable aileron, rudder, and elevator values, and sent to FS. This at least gives me different parameters I can use to tune and adjust both in the lua module and in the aircraft.cfg for real-world flight dynamics of a paraglider. Note that I did try to make the flaps work but was not able to get the controls to function correctly :(
-- Paraglider Controls v1.0
-- FSX Lua Plug-In
-- flyingndiving at yahoo.com
--
-- Read x and y linear inputs of joystick, calculate corrected ailerons, elevator, and rudder, and write to FS
--
-- loop forever
while 1 do
-- read x and y axis (joystick) inputs
x_axis = ipc.axis(1, "X")
y_axis = ipc.axis(1, "Y")
-- convert x and y axis inputs into differential aileron_value
aileron_value = (x_axis - y_axis) / 2
-- convert x and y axis inputs into average elevator value
ele_value = (-x_axis - y_axis) / 8
-- convert x and y axis inputs into differential rudder value
rudder_value = (x_axis - y_axis) / 2
-- write aileron_value, ele_value, and rudder_value to FSX
ipc.writeSW(0x0BB6, aileron_value)
ipc.writeSW(0x0BB2, ele_value)
ipc.writeSW(0x0BBA, rudder_value)
-- display in FS Window
ipc.display("X="..x_axis.."\nY="..y_axis.."\nAV="..aileron_value.."\nElev="..ele_value.."\nRV="..rudder_value)
-- end script
end