Jump to content

AND condition no work for me :-(


Recommended Posts

Hello

 

We have the choice between AND and OR

 

I tried, for the ALT led to light up, that three conditions are met by using the AND condition.

 

Without success, here is the coding

 

{
      "ByteIndex": 1,
      "BitIndex": 4,
      "ConditionLogic": "AND",
      "Conditions": [
        {
          "Condition": "B742/AP_mode_panel/AP_1:1",
          "ConditionValue": "1",
          "ConditionIsCustom": true
        },
        {
          "Condition": "B742/AP_panel/altitude_mode_sw",
          "ConditionValue": "-1",
          "ConditionIsCustom": true
        },
        {
          "Condition": "B742/AP_panel/AP_pitch_mode_sel",
          "ConditionValue": ">=1",
          "ConditionIsCustom": true
        }
      ]
    },

 

dataref and input

 

Please login to display this image.

 

 

Please login to display this image.

 

Please login to display this image.

 

Please login to display this image.

 


Do you have an idea?

 

Thanks

 

Hervé

Translated with www.DeepL.com/Translator (free version)

Link to comment
Share on other sites

  • Aerosoft

Hi Hervé,

 

your first variable is an array..and there is currently a bug with reading arrays.

 

Please try removing the first variable and if it works like that..you know the reason is that bug.

Link to comment
Share on other sites

  • Aerosoft

Yes:

 

it's a problem we discovered specifically with reading some array indices correctly. Writing is not affected. It will be fixed with the next release.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy & Terms of Use