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.

Linda newbie seeks a little TLC...

Featured Replies

Hi all,

New to coding, new to LINDA and LUA but trying hard not to hit the forum with everything. However, could someone tell me where this code is going wrong? I'm trying to make a physical switch carry out a function and play a sound, switch state on or off:

function button_OnPress (j0, b1)

function ALL_FuelPumps_on ()
    ipc.setbitsUB("3125", 0)
    ipc.setbitsUB("3125", 1)
    ipc.setbitsUB("3125", 2)
    ipc.setbitsUB("3125", 3)
    DspShow ("PUMP", "on")
    ref1=sound.play("fuel_pump")
    sound.adjust(ref1, 100)

--ipc.sleep(50)
function buttonOnRelease (j0, b1)

function ALL_FuelPumps_off ()
    ipc.clearbitsUB("3125", 0)
    ipc.clearbitsUB("3125", 1)
    ipc.clearbitsUB("3125", 2)
    ipc.clearbitsUB("3125", 3)
    DspShow ("PUMP", "off")
sound.stop(ref1)
--ipc.sleep(50)
end

Also, I would like to add a sound to a fuel warning. I think this will involve reading an LVar? Any tips on getting into that would be great. I know LINDA can do all this but I'm struggling to get my head around it's vast capacity.

Thanks in advance,

D

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.