cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DSOX: How to set multiple decision tree checking in FSM

LCMGCD
Visitor

Now I am working on my own project which involve with detecting the pattern of hand gestures using LSM6DSOX. I planned to use decision tree to detect each gesture and use FSM to detect the sequence of gestures and send the interrupt signal.

Now the project has 2 decision trees which detect different type of gesture. Both are working fine. In FSM, It program to detect 2 results from the decision tree. I use SETP command to change the DECTREE variable to check other decision tree address and value. But when upload the config, it doesn't work.

I not sure that I am misunderstanding something about MEM_ADDR and MEM_VAL in SETP command, or my FSM has other issue

The picture attached is the FSM I use now for clarification. I want to check decision_tree_1 if the result is 4 first, then check decision_tree_0 if the result is 4.

p.s. Actually, I have other question, how can I program the FSM to detect if the sensor is tilt and stay still for a period of time (the tilt data is from decision tree).

 

0 REPLIES 0