Hi,
We have a KINARM end-point with the right arm. We\'re working on a task where participants reach to a target and then localize their hand via a joystick-controlled cursor displayed on KINARM screen. We are trying to jitter the initial position of this joystick-controlled cursor. However, I think we have a fundamental misunderstanding of how the VCODES are processed. So far, we\'ve had to shift and scale the VCODEs associated with how the joystick displaces the cursor in both X and Y dimensions, however this was done through trial-and-error.
Is it possible to shed some light on how to tackle this process appropriately? I\'ve attached code related to how we are currently processing the incoming analog signal and how that affects the joystick-controlled cursor.
Thank you!
Attachments
1 Answers
There's a good overview of how a vcode works here, at the 5:40 mark: https://www.youtube.com/watch?v=zajr4l4OgS8&t=64s
Vcodes are 70 element vectors which, when sent to the Process Video CMD block, directly translate to openGL commands that are used to draw targets on the subject display.
The video covers which tables to read about how to understand, modify, or build vcodes.
A common workflow for a dynamic vcode (which has its values change during a task, like changing its position) is to generate a vcode from the Target Table that is static and then use a function, like yours, to overwrite the value you want to change. You can check out the collision sample task on here that does that by taking the Target Table x0 value and then calculating an offset that changes with velocity.
So something like x0 + offset and then update offset based on the input from the joystick
Cheers,
Koloman
Vcodes are 70 element vectors which, when sent to the Process Video CMD block, directly translate to openGL commands that are used to draw targets on the subject display.
The video covers which tables to read about how to understand, modify, or build vcodes.
A common workflow for a dynamic vcode (which has its values change during a task, like changing its position) is to generate a vcode from the Target Table that is static and then use a function, like yours, to overwrite the value you want to change. You can check out the collision sample task on here that does that by taking the Target Table x0 value and then calculating an offset that changes with velocity.
So something like x0 + offset and then update offset based on the input from the joystick
Cheers,
Koloman
Please login or Register to submit your answer