Most of the commonly reported issues and questions are answered in the Frequently Asked Questions (FAQ) option under the Support menu of this website.
*** PLEASE NOTE ***
Your forum account is not the same as the account used in the shop. They are completely separate accounts.
1st December: A new version of the GoFlight Interface Tool for MSFS is now available.
12th November: A new version of the GoFlight Interface Tool for X-Plane is now available.
6th June: A new version of Virtual Flight Sim Hardware is now available (huge update)
21st November: A new version of the GoFlight Interface Tool for FSX/FSXSE/P3D is now available.

EFIS Baro switch FF A320 Problem

I've the following problem. If I set the BaroModeL to 1 od -1 (for Std or normal Baro), the value should go back to zero. If I set the value to 1 or -1, the value hangs at 1 or -1 instead going to 0.

Any ideas?

Regards,
Martin

Comments

  • In that picture there are no Tasks to do anything?! If the value needs to go back, just set it back with another Set Task in the same Bespoke Event.

    Best wishes
    Steve
  • Ok, Maybe what I'm doing here is not that, what you expect Steve.

    Left window there is the Dataref a320/Panel/EFIS_BaroModeL. With this, if I pull the Baro knob in the Cockpit of the A320 value -1 is set and it goes back to 0. If I push the knob value 1 is set and goes back to 0.

    In the right window above I click in the dataref and create a bespoke event right down in the window. There I click "set" and give the value -1 or 1. But if I use this bespoke event, the value left window stays at -1 or 1. As next step I tried to use the "if" command and choose "if value is 1 or -1, set 0. But this is working with the -1 value, but not 1.

    Also I think I can't program the baro knob at the EFIS to set -1 (Std.) on the first press, and 1 (Normal Baro) at the second press. I don't know, how I can do this.

    All other switches for Ldg Lights, Beacon and so on I programmed this way. Only this Baro is so tricky.

    But I learned a lot.

    Regards,
    Martin
  • Try the following in a single Bespoke Event

    Set a320/Panel/EFIS_BaroModeL -1
    Sleep 50
    Set a320/Panel/EFIS_BaroModeL 0
  • edited April 2019
    Oh, thank you, that works. But I think it is not possible to make a "toggle" function, that first press set to STD and second press to NORM?
  • Sorry Martin, can you explain what the problem is as I'm not sure what you are saying.

    Thx
    Steve
  • Hi Steve,

    the problem is, that the Baro switch at the EFIS only can be pushed. In the Airbus this knob can be pushed (normal Baro), value a320/Panel/EFIS_BaroModeL 1 and it can be pulled out (STD Baro) a320/Panel/EFIS_BaroModeL -1.

    Now I want, that if I push the Baro knob at the EFIS this 2 settings change with every push. First push STD Baro, second push Normal Baro and so on.

    I think this can't be done in one single bespoke event?

    Martin
  • Hi Martin,

    You need to use the Switch Task to check the current value and set it based on that e.g.

    Switch a320/Panel/EFIS_BaroModeL
    Case -1:
    Set a320/Panel/EFIS_BaroModeL 1
    Case 1:
    Set a320/Panel/EFIS_BaroModeL -1
    EndSwitch

    Best wishes
    Steve
  • Hi Steve,

    tried your commands, but unfortunately there is this problem with the Baro function.

    At the moment I'm using:

    Set a320/Panel/EFIS_BaroModeL -1
    Sleep 50
    Set a320/Panel/EFIS_BaroModeL 0

    because if I use this command with GIT, the value EFIS_BaroModeL stays at -1 or 1 instead going back to 0. Therefore I'm using the above command. With mousepress the value everytime goes back to 0.

    Any ideas?
  • Try increasing the Sleep value in steps of 50 upto about 500
  • edited April 2019
    Hello Steve,

    as there was a normal command in the B738, I had a look at the A320. There are also normal commands for the baro. But those I didn't found in detective.

    And as there are to different commands I have to set it in one push at the baro knob from EFIS. This I also do with the "switch" command?

    I found the datarefs and commands.

    Regards,
    Martin
  • Datarefs, commands FF A320
  • With

    Set a320/Panel/EFIS_BaroModeL -1
    Sleep 500
    Set a320/Panel/EFIS_BaroModeL 0

    the knob works. Last problem is to set the two commands alternatley to the one push function of the EFIS Baro knob.

    This switch command doesn't work.
  • I think this will do it:
    Switch Bespoke Var 0
    case -1:
    Set a320/Panel/EFIS_BaroModeL -1
    Sleep 500
    Set a320/Panel/EFIS_BaroModeL 0
    Set Bespoke Var 0 1
    case 1:
    Set a320/Panel/EFIS_BaroModeL 1
    Sleep 500
    Set a320/Panel/EFIS_BaroModeL 0
    Set Bespoke Var 0 -1
    case 0:
    Set a320/Panel/EFIS_BaroModeL -1
    Sleep 500
    Set a320/Panel/EFIS_BaroModeL 0
    Set Bespoke Var 0 1
    EndSwitch
    Best wishes
    Steve
  • edited April 2019
    How I put in "Switch Bespoke Var 0"? With the "Switch" button there is the highlighted variable (a320/panel...)

  • Select Bespoke Var 0, then click Switch
  • Sorry, where I select "Bespoke Var 0"? In the upper window under "Bes Vars" there is no Bespoke Var 0. Only 7, 9, 10.
  • Yes, there should be 100, perhaps they have been renamed. Just use Bespoke Var 7 then making sure any reference to Bespoke Var 0 is changed to 7 in the code sample I gave you.
  • We are on the right way. It works, but if I press the Baro knob at the EFIS the setting change to STD (-1) but the value goes back to Normal (1) until I release the knob.
  • edited April 2019
    Try:
    Switch Bespoke Var 7
    case -1:
    Set a320/Panel/EFIS_BaroModeL -1
    Sleep 500
    Set a320/Panel/EFIS_BaroModeL 0
    Set Bespoke Var 9 1
    case 1:
    Set a320/Panel/EFIS_BaroModeL 1
    Sleep 500
    Set a320/Panel/EFIS_BaroModeL 0
    Set Bespoke Var 9 -1
    case 0:
    Set a320/Panel/EFIS_BaroModeL -1
    Sleep 500
    Set a320/Panel/EFIS_BaroModeL 0
    Set Bespoke Var 9 1
    EndSwitch
    Set= Bespoke Var 0 = Bespoke Var 9
  • edited April 2019
    Hello Steve,
    I don't have Bespoke Var 0. Do you mean 7?
  • At the moment the button only goes to -1 and then 0 with every press of the baro button.
  • Yes 7 sorry.
  • Ok, I set this Bespoke Event to the EFIS Baro knob (input event) ON. If I push the knob the value goes to -1 (STD) and if I release the knob, back to 1 (NORMAL).
  • Can you export the Bespoke Evens and attach here. Thx
  • Steve, hold on. I'm so sorry. This moment, as I set the Bespoke event in the EFIS Tab I saw a command called a320/Panel/InstBaroMode. This one I didn't notice until now. If I set this one to ON and OFF, the knob works like expected. :/

    I don't wanted to get on your nerves.

    Now all my problems with Zibo B738 and FF A320 are solved, I've learned a little coding with GIT and I'm glad how great you supported me.

    Thank you very much and I wish you a nice evening.

    Best wishes,
    Martin
  • No problem, glad its sorted.

    Best wishes
    Steve
Sign In or Register to comment.