aolabNeuro / brain-python-interface

Other
4 stars 2 forks source link

Tracking task #134

Closed katherineperks closed 1 year ago

katherineperks commented 1 year ago

This code makes two changes:

  1. Adds feature to make perturbation rotations around the other two axes (z and x). Previously only perturbation rotations around the y axis (corresponding to rotations in the x,y plane of the screen) was possible.
  2. Move function that calculates trial number outside a for loop within the wait states of tracking task. This prevents task from spending increasingly more time in the wait state (which makes screen freeze between trials) as trials accumulate. Only affects tracking task.
katherineperks commented 1 year ago

@leoscholl I made a few other changes since your review. I checked the incremental rotations worked by saving & analyzing test data. Raising an error when the two sample rates don't match broke bmi3d and required a hard reset, so I am just printing a warning instead.

katherineperks commented 1 year ago

Previous method of knowing when to stop incrementing only worked for positive rotation angles