Hi guys,
I was coding an application to detect the freefall condition of the zstar node modifying the pre-existing ZStarLib_example.
The code is quite simple:
//Event that occur if a free fall condition is detected
theZStar.OnFreeFall+=new ZStar3.OnFreeFallHandler(theZStar_OnFreeFall);
Now the problem is that I need to enable:
theZStar.FreeFallEventEnableAll(1);
I have put a 1 and is working, but I would like to know how the EnableMask is defined.
Is it a kind of bitmask where every bit is the index address of every ZStar node?
void theZStar_OnFreeFall(object sender, byte sensor)
{
// Are these data from our sensor 0
if (sensor == 0)
{ // Update labels with values of actual acceleration for all axes
lb_Status.Text = "FreeFall!";
MessageBox.Show("Fall detected!", "ZStarLib", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
Is it possible to get the source code also of the DemoApplication so that a developer can see how all the functions are used?