Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

AAO and Lvar for fuel pump JF Arrow

Featured Replies

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

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 by yurei

My MSFS 2020 repaints: Flightsim.to - Profile of HStreet

Working on MSFS 2024 versions.

  • 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 by Lorby_SI

LORBY-SI

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.