Hi,
after assigning one of my second saitek throttle quadrant lever to the gear-function in the preferences/Joystick/Axis menue, the gear of the aircraft will go up and down by moving the saitek lever, but the lever inside the VC will not move. missposition between VC-Lever and gear wil lead to a 'warning'-sound until both positions match again by moving the handle in the vc manually.
When the VC-lever is in OFF-Position using the Hardware lever will do nothing.
It would be nice if you could check why the default assignment did not work.
I tried to do a workaround with a flywithlua script, but writing to the dataref leads to stack overflows after a period of time during flight.
---------------------------------------------------------------------------------------------------
saitek_axis_lever=10
dataref("Gear_Position", "ixeg/733/gear/gear_handle_act", "writable")
dataref("gear_axis_value", "sim/joystick/joystick_axis_values", "readonly", saitek_axis_lever)
Old_Gear_Axis_Value=gear_axis_value
function check_737_Gear()
if math.abs(Old_Gear_Axis_Value - gear_axis_value) > 0.005
then
-- print("Neue Hebelposition")
-- print(gear_axis_value)
-- print(Gear_Position)
Old_Gear_Axis_Value=gear_axis_value
if gear_axis_value>0.44 and gear_axis_value<0.51 then
Gear_Position=0.5
else
Gear_Position=gear_axis_value
end
end
end
do_every_frame("check_737_Gear()")
------------------------------------------------------------------------------------------------------