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.

hdg encoder assign offset lua

Featured Replies

Hi

I'm building fcu using mobiflight and arduino. I can not attribute offset type 0x66C0 to the following function:

function AB_HDG_plus ()
    AB_hdgtrk = ipc.readLvar("L:AB_AP_HDGTRK")
    AB_drift = round(ipc.readLvar("L:AB_AP_HDGTRK"))
    if AB_hdgtrk == 0 then
        LVarSet = "AB_AP_HDG_Select"
    else
        LVarSet = "Autopilot_TRK_set"
    end
    LVarGet = ipc.readLvar(LVarSet)
    AddVar = LVarGet + 1
    if AddVar > 359 then
        AddVar = 0
    end
    DspHDG(AddVar)
    ipc.writeLvar(LVarSet, AddVar)
end

function AB_HDG_minus ()
    AB_hdgtrk = ipc.readLvar("L:AB_AP_HDGTRK")
    if AB_hdgtrk == 0 then
        LVarSet = "AB_AP_HDG_Select"
    else
        LVarSet = "Autopilot_TRK_set"
    end
    LVarGet = round(ipc.readLvar(LVarSet))
    AddVar = LVarGet - 1
    if LVarGet < 0 then
        AddVar = 359
    end
    DspHDG(AddVar)
    ipc.writeLvar(LVarSet, AddVar)
end

I'm using an encoder assign to increase or decrease the Hdg value on aerosoft airbus.

thanks in advance for the help

 

 

Edited by mauri61173

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.