Skip to content

Commit 212c9ca

Browse files
committed
change how trial_type manage motion type and how to change the fixation position
1 parent b2f7d65 commit 212c9ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subfun/preTrialSetup.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
thisEvent.direction = cfg.design.directions(iBlock, iEvent);
1313
thisEvent.speedPix = cfg.design.speeds(iBlock, iEvent);
1414
thisEvent.target = cfg.design.fixationTargets(iBlock, iEvent);
15+
thisEvent.fixationPosition = cfg.design.blockFixationPosition{iBlock};
1516

1617
% If this frame shows a target we change the color of the cross
1718
thisFixation.fixation = cfg.fixation;
@@ -28,7 +29,7 @@
2829

2930
thisEvent.dotCenterXPosPix = 0;
3031

31-
switch thisEvent.trial_type
32+
switch thisEvent.fixationPosition
3233
case 'fixation_right'
3334
cfg.aperture.xPosPix = -abs(cfg.aperture.xPosPix);
3435

0 commit comments

Comments
 (0)