Hi Xin Li,
You're getting the velocities correctly. You connect the Kindata_bus From tag to a bus selector and double-click the signal you want.
In Stateflow, you should then make an input (I called it hand_velocities) in this case. You would use the variable as hand_velocities. Make sure to go to the Description tab of hand_velocities in Model Explorer and set First Index to 1. You would then access the x-position of the hand using hand_velocities and y-position as hand_velocities.
Please login or Register to submit your answer