Jump to content

copilot767

Little help :) Pack 1 one button Aerosoft Airbus

Recommended Posts

Hello...

I can add overhead PACK 2 button as toggle - and it works..

But PACK 1 button toggle do not work - On and off work - but not toggle ..

 

What do I have to edit ?

 

Chris from Denmark

Share this post


Link to post
Share on other sites

Hi Chris

Thank you for your report. It is will be fixed in the next release (v0.5beta).

To fix it yourself:

  1. Click Edit and Edit Actions to open action.lua in the LINDA Editor.
  2. Enter AB_Pack1 in the Search field.
  3. Enter AB_OVH_Pack1 in the Replace field.
  4. Tick the All checkbox.
  5. Press F4.

This will correct the error.

 

Share this post


Link to post
Share on other sites

Hello Andrew, thank you for the module and so fast as well. Updated to v0.5beta and found out a little problem with the HDG_PLUS AND PLUS_FAST

Was able to find the problem. Here it is and its working for me now. If I find something else will let you know. Take care.

The code fixed:

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

function AB_HDG_plusfast ()
    AB_hdgtrk = ipc.readLvar("AB_AP_HDGTRK")
    if AB_hdgtrk == 0 then
        LVarSet = "AB_AP_HDG_Select"
    else
        LVarSet = "AB_AP_TRK_set"
    end
    LVarGet = round(ipc.readLvar(LVarSet))
    AddVar = LVarGet + 10
    if AddVar > 359 then
        AddVar = AddVar - 359
    end
    DspHDG(AddVar)
    ipc.writeLvar(LVarSet, AddVar)
end

Share this post


Link to post
Share on other sites

Hello Andrew,

Another things not working for me are the LSK keys, I was looking at the lua and I found some weird spelling on the MCDU MDCU, did try to play with some parameters but none worked for me. Maybe I'm doing something wrong? Again, I know this is a beta so if I find something else I will keep posting. 😉

 

Edited:

Ok, after further checking, I think it was just an error of spelling, this is the original line and after I changed it, now it is working.

Let me show you the left MCDU LSK 6R key

Original

function AB_PED_MDCU_LSK_6R ()
    ipc.writeLvar("AB_PED_MDCU_LSK_6R", 1)
    AB_PED_MCDU_CLICK ()
end

Edited

function AB_PED_MCDU1_LSK_6R ()
    ipc.writeLvar("MCDU_LSK6R", 1)
    AB_PED_MCDU_CLICK ()
end

Note: On the edited one, I changed the function name to reflect the MCDU1 instead of leaving it with no number, just for reference only. I will edit them tomorrow and post it here in case you just want to copy and paste to make it easy for you, I know you are working hard on this modules.

Take care.

Edited by jotafl
more finding

Share this post


Link to post
Share on other sites

Many thank Jay for your 2 inputs. Both are fixed in 0.6 beta. You may need to reassign the MCDU1 key functions as I have standardised the naming convention to AB_PDS_MCDU1_... .

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...