P-40 Lvars

Post any technical issues here. This forum gets priority from our staff.
new reply
User avatar
SeattleSleeper
Airman First Class
Posts: 75
Joined: 02 Feb 2014, 09:58
Location: Pennsylvania

P-40 Lvars

Post by SeattleSleeper »

I'm attempting to write a LUA scirpt for FSUIPC that has as one of it's functions the setting of the fuel tanks selector. The Lvar ""L:Eng1_FuelSelector" accurately reflects the current position of the selector. Reading this Lvar will return;

-- L:Eng1_FuelSelector = 0.000000 None Selected
-- L:Eng1_FuelSelector = 1.000000 Reserve Tank Selected
-- L:Eng1_FuelSelector= 2.000000 Wing Tanks Selected
-- L:Eng1_FuelSelector = 3.000000 Fuselage Selected
-- L:Eng1_FuelSelector = 4.000000 External Selected


However, a write to this Lvar with "ipc.writeLvar("L:Eng1_FuelSelector" , 3)" will not change the fuel tanks selector position.

Does anyone know what Lvar must be written to change the fuel tank selector?

Terry

User avatar
blockwood
Airman
Posts: 46
Joined: 18 Feb 2013, 15:29

Re: P-40 Lvars

Post by blockwood »

Terry

Try L:FSelP40State=SET

I think I have used that to move the fuel tank selectors.

Bill

User avatar
SeattleSleeper
Airman First Class
Posts: 75
Joined: 02 Feb 2014, 09:58
Location: Pennsylvania

Re: P-40 Lvars

Post by SeattleSleeper »

blockwood wrote: 22 May 2020, 14:38 Terry

Try L:FSelP40State=SET

I think I have used that to move the fuel tank selectors.

Bill
Thanks Bill, that did the trick. The call to "ipc.writeLvar("L:FSelP40State" , 3)" will set the fuel selector on the P-40C to the fuselage tank.

Terry
Last edited by SeattleSleeper on 22 May 2020, 16:14, edited 1 time in total.

User avatar
blockwood
Airman
Posts: 46
Joined: 18 Feb 2013, 15:29

Re: P-40 Lvars

Post by blockwood »

My one good deed for the day, maybe the year, is completed.

new reply

Return to “P-40 Tech Support”

Who is online

Users browsing this forum: No registered users and 3 guests