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

BIP: How do the comparators work?

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

BIP: How do the comparators work?

Post by c0nnex » 02 Apr 2015, 04:39

For the BIP SPAD.neXt supports several comparators to evaluate how to act.
Those are:
  • Equals ( offset-value matches value exactly)
  • Less ( offset-value is smaller than the value )
  • LessOrEqual ( offset-value is smaller than or equal to the value )
  • Greater ( offset-value is greater than the value )
  • GreaterOrEqual ( offset-value is greater than or equal to the value )
  • Ignore ( the value will be ignored and not checked )
  • Mask ( offset-value is bitwise ANDed with the value, and the result must be equal to the value)
  • AnyBitSet ( offset-value is bitwise ANDed with the value, and the result must greater then zero)
For further information about the bitwise AND , please see http://en.wikipedia.org/wiki/Bitwise_operation#AND

When SPAD.neXt recognizes a change in a watched offset it will determine the color to set on the panel in the following order:

1. It will check if any of the configured values matches the offset-value exactly. The comparator has to be set to "Equals", to be included in this check.
1. It will then check all other comparators

Values are always processed in the order OFF->GREEN->YELLOW->RED (Blinking)->RED and stops at the first matching one.
So it might be a bit tricky to get the right result, but it's possible!

Example: (Checking Left Fuel capacity in %)
flleft.PNG
flleft.PNG (9.81 KiB) Viewed 4689 times
When adding a BIP-Watch to a BitOffset (e.g. Lights) you will not be able to choose a comparator, but have to choose which color the plate shall get when the light is on.
bip_offset_cfg.PNG
bip_offset_cfg.PNG (6 KiB) Viewed 4689 times

Locked