May 30, 20215 yr I would gratefully need some help getting a Lvar to JF Arrow Turbo to work on a pushbutton 0 on the Honeycomb Alpha. This applies to a fuel pump that has three positions. 0 = low 1 = off 2 = high. Since it is a pushbutton, it must be a toggle function. Lvar is "CENTER_LOWER_fuelpump" /Thomas Thomas ( Sundsvall, ESNN, Sweden) MSFS 2024, Intel 9 9900K Oc 5 GHZ 16MB, Corsair Hydro H150i PRO RGB 360mm, ASUS GeForce RTX 2080 SUPER 8GB ROG, 2 Corsair Force M2 MP600 1TB+500Gb, ASUS ROG MAXIMUS XI HERO Z390 MB, Corsair 32GB (2x16GB) DDR4 3200Mhz CL16, Fractal Design Define S2 Vision, Win 10 Home, BenQ 32" PD3200U 4K IPS monitor A2A Comanche, WB Sim Cessna 152
May 30, 20215 yr Likely you will need to write a little code. I am not familiar with AAO (yet) but have done a lot of programming in Lua. In my programming, this is called a "cycle" where pressing the button cycles thru the possible values. The logic would look something like: 1) Read the Lvar 2) test the value against the max value 3) if not max, increment the value by 1 and set the new value 4) if the value is max, set the value to min and set the new value Here is my corresponding Lua programming for such a button: -- 306 EHSI arc mode cycle if ipcPARAM == 306 then ytemp = ipc.readLvar("EHSI_ARC") if ytemp == 2 then newtemp = 0 else newtemp = ytemp + 1 end ipc.writeLvar("EHSI_ARC", newtemp) end There are probably more elegant ways to do it. Hope this helps. Edited May 30, 20215 yr by yurei My MSFS 2020 repaints: Flightsim.to - Profile of HStreet Working on MSFS 2024 versions.
May 30, 20215 yr Commercial Member Probably something like this (off the top of my head, not tested!) Every button press advances to the next state, then jumps back to the initial one. (L:CENTER_LOWER_fuelpump, Number) 2 < if{ (L:CENTER_LOWER_fuelpump, Number) ++ } els{ 0 } (>L:CENTER_LOWER_fuelpump, Number) Or this: Toggles between high and off: (L:CENTER_LOWER_fuelpump, Number) 2 < if{ 2 } els{ 1 } (>L:CENTER_LOWER_fuelpump, Number) Edited May 30, 20215 yr by Lorby_SI LORBY-SI
Archived
This topic is now archived and is closed to further replies.