Using Lua code to programme my PA28 home cockpit to a "no mouse use" status, to be full functional using physical mapped switches. Using Linda Tracer I found these Lvars which are not on the downloaded A2A PA28 Lvar list.
Problem is I cannot verify in the virtual cockpit if the physical buttons are working or open / closed, because the fuse breaker pods seen in the virtual cockpit do not pop open, although they do if I click them with the mouse.
I know that the Autopilot breaker at least is doing something because it resets when I flick the physical switch, but the fuse breaker pod fails to open. I've had no problems with the Com1-2 or Nav1-2 frequency swap buttons ADF / DME etc, even the 25k knob pull switches on the radios work a treat. Now I may be opening my mouth to change feet again, but assume the Lvar is working as it should behind the scenes and resetting the circuit but is missing the instruction to open or close the fuse pods in the virtual cockpit? A vital visual prompt by the way if the engine wont work it has happened to me. Hope someone can help.
Used this basic code to function test the breakers.
Code: Select all
function PA28_Fuse_Auto_Pilot0 ()
ipc.writeLvar("BreakerAutoPilot", 0)
end
--
function PA28_Fuse_Auto_Pilot1 ()
ipc.writeLvar("BreakerAutoPilot", 1)
end
Code: Select all
BreakerFuelPump - BreakerPitotHeat - BreakerNavLight - BreakerLightLanding - BreakerLightBeacon - BreakerGaugesEngine - BreakerLightsInstruments
BreakerWarningStall - BreakerAutoPilot - BreakerNavCom1 - BreakerNavCom2 - BreakerStarter - BreakerGeneratorOutput - BreakerGeneratorField