I just purchased the Spit for P3Dv4 and I'm getting the controls set up through LINDA.
My trouble is with the Panel lights. I can use the Default "Lights Panel Toggle" from FSX/P3D through LINDA but this turns on both Cabin Lights and Panel Spot Light. I'm looking for commands to switch them separately. The spot light Lvar is Lamp1State and the cabin light Lvar is Lamp2State but these do not work. Sometimes the switch will twitch but nothing more. Can someone help me with this?
I'm finding that in Win 10 Pro with the last few Windows updates some of the old command style functions are finicky and require and different style. I have had to update my commands in several aircraft, especially when it comes to variable commands to twist knobs/move levers from 0-100 or -50 to +50 incrementally.
FYI
I was able to write the Spit commands for the dash spot light movement up/down & left/right. Just in case someone else is interested I'll post them.
Dash Spot Light Movement
Code: Select all
function FO_Spot_RIGHT ()
Def = "L:Lamp1AdjustFA"
Var = ipc.readLvar(Def)
if Var < 100 then
Var = Var + 2
ipc.sleep(1)
end
ipc.writeLvar(Def, Var)
end
function FO_Spot_LEFT ()
Def = "L:Lamp1AdjustFA"
Var = ipc.readLvar(Def)
if Var > 0 then
Var = Var - 2
ipc.sleep(1)
end
ipc.writeLvar(Def, Var)
end
function FO_Spot_Arm_UP ()
Def = "L:Lamp1AdjustLR"
Var = ipc.readLvar(Def)
if Var < 100 then
Var = Var + 2
ipc.sleep(1)
end
ipc.writeLvar(Def, Var)
end
function FO_Spot_Arm_DN ()
Def = "L:Lamp1AdjustLR"
Var = ipc.readLvar(Def)
if Var > 0 then
Var = Var - 2
ipc.sleep(1)
end
ipc.writeLvar(Def, Var)
end