Current SPAD.neXt Release: 0.9.12.123

This forum has closed. Please join our Discord Community.

SPAD.neXt online services are no longer available for SPAD.neXt Versions < 0.9.11.5

Bitwise event recognition eratic

Discussion about Problems.
Forum rules
If you have technical Problem, please open a ticket: https://www.spadnext.com/discover/how-to/get-help.html

Do NOT hijack other people threads, until you have exactly the same problem!
Locked
pipsara
Flight Attendant
Posts: 19
Joined: 15 Mar 2019, 15:32
Status: Offline

Bitwise event recognition eratic

Post by pipsara » 25 Jun 2019, 23:53

Hi Ulrich, I don't know if this only applies to the latest beta.... I have found that if you use a bit change in a single byte offset to trigger a light state change in the Saitek BIP it doesn't work properly. As soon as the bit change is detected the light state changes but immediately changes back even though the bit hasn't changed. If you use the change in the value of a single byte offset to trigger the state change in a lamp in the BIP, it works properly.
I've also reported a problem with the iFly737 events in the beta forum.
Kind regards Mike

User avatar
c0nnex
Site Admin
Posts: 5469
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: Bitwise event recognition eratic

Post by c0nnex » 26 Jun 2019, 13:32

PLease provide a sample snippet of a bip programming that is behaving incorrectly

pipsara
Flight Attendant
Posts: 19
Joined: 15 Mar 2019, 15:32
Status: Offline

Re: Bitwise event recognition eratic

Post by pipsara » 26 Jun 2019, 14:24

Hi Ulrich, I dont know how to save a snippet but this is the definition screens


The first one works
The second one fails...it momentarily lights even thought the bit remains set

...
Kind Regards Mike
You do not have the required permissions to view the files attached to this post.

User avatar
c0nnex
Site Admin
Posts: 5469
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: Bitwise event recognition eratic

Post by c0nnex » 26 Jun 2019, 14:46

This will check if bit 1 ( = 2) is set not if Bit 0 ( = 1 ) is set. Is that what you want?

pipsara
Flight Attendant
Posts: 19
Joined: 15 Mar 2019, 15:32
Status: Offline

Re: Bitwise event recognition eratic

Post by pipsara » 26 Jun 2019, 20:33

Yes that is correct , I am taking the bits as ranging from Bi t0 to Bit 7
Mike

User avatar
c0nnex
Site Admin
Posts: 5469
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: Bitwise event recognition eratic

Post by c0nnex » 27 Jun 2019, 00:08

post the whole snippet please. Are there any other events bound to that plate?
Either attach the whole profile, or the device (The dropdown-arrow right of Edit Event -> Copy ) then paste the clipboard, or just open a ticket

pipsara
Flight Attendant
Posts: 19
Joined: 15 Mar 2019, 15:32
Status: Offline

Re: Bitwise event recognition eratic

Post by pipsara » 27 Jun 2019, 10:40

Hi Ulrich.. this is the data for a MASTER Caution tile, for the IFLY737 using the IFLY2Fsuipc utility.
This exposes the Master caution light being on by turning on the 2nd bit of offset 9420 (bit 1 of the range 0 to 7)
Turns on:

<EventDefinition xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Trigger="VALUE">
<EventConditions xmlns="http://www.fsgs.com/SPAD">
<EventCondition ConditionComparator="IsBitSet" ConditionTargetValue="1" ConditionValueSource="FSUIPC:0000:9420" />
</EventConditions>
<EventActions xmlns="http://www.fsgs.com/SPAD">
<EventActionPlateColor Color="YELLOW" />
</EventActions>
</EventDefinition>

Turns off:
<EventDefinition xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Trigger="VALUE">
<EventConditions xmlns="http://www.fsgs.com/SPAD">
<EventCondition ConditionComparator="IsBitNotSet" ConditionTargetValue="1" ConditionValueSource="FSUIPC:0000:9420" />
</EventConditions>
<EventActions xmlns="http://www.fsgs.com/SPAD">
<EventActionPlateColor Color="OFF" />
</EventActions>
</EventDefinition>

I cant see any difference in the expression for bit set and bit not set in the definition screen image attached..
regards Mike
You do not have the required permissions to view the files attached to this post.

User avatar
c0nnex
Site Admin
Posts: 5469
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: Bitwise event recognition eratic

Post by c0nnex » 05 Jul 2019, 13:25

Bug confirmed. fixed in Beta 3

Locked