Hi, i am trying to create a simulink program, which has a target located at (0,20). In my program there is a parameter called angle. When the angle is 0 degree, the cursor's movement is same as my handle's movement, for example, if my handle moves straight forward, my cursor going straight forward. But if the angle is 90 degrees, the cursor will turn right when i move my handle straight forward. In my program, when my cursor reaches the target position on the screen(meanwhile the position of my handle is somewhere else), the handInTarget(1) will equal to 1 then to indicate that the cursor is in the target right now. i just wonder how can i create the movement angle, and how can i use handIntarget block to indicate if cursor is in the target.
Hi Yihui, We have a sample task https://kinarm.com/download/visuomotor-rotation-task/ that demonstrates how to change where the cursor is drawn based on hand location and also how to change the HandInTarget block so that it uses the location of the cursor instead of the location of the hand. Let me know if you have anymore questions. Cheers, Koloman
Please login or Register to submit your answer