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.

reading fsx outputs

Featured Replies

Hi, me again,

Here's a simple question: How do I interrogate something like for example, fuel quantity?

Let's say I want to have LINDA examine the FUEL_TOTAL_QUANTITY and if it is less than X gallons, play an alarm sound.

It's an 'if' 'then' 'else' thing, right? But what is the correct structure fo the code?

Honestly, I've looked but I can't find an example of such a simple thing anywhere.

Thanks in advance,

D

 

  • 3 weeks later...

-- Fuel Alarm --
function Fuel_Alarm()
if ipc.readLvar("A:FUEL_TOTAL_QUANTITY, gallons")<=X then
    alarmf=sound.play("BingoFuel")
    sound.adjust(alarmf, 100)
    end
    ipc.sleep(50)
end

 

X being the integer amount for your number of gallons. You may need to tweak the sound to match your system.

Edited by Masterius

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.