Skip to content

Commit

Permalink
drift fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iandol committed Feb 23, 2023
1 parent 9d73dac commit 2772426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stimuli/baseStimulus.m
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,9 @@ function setP(me, name, value)
function [dX, dY] = updatePosition(delta,angle)
% updatePosition(delta, angle)
dX = delta .* cos(baseStimulus.d2r(angle));
if dX < 1e-3; dX = 0; end
if abs(dX) < 1e-3; dX = 0; end
dY = delta .* sin(baseStimulus.d2r(angle));
if dY < 1e-3; dY = 0; end
if abs(dY) < 1e-3; dY = 0; end
end

end%---END STATIC METHODS---%
Expand Down

0 comments on commit 2772426

Please sign in to comment.