Skip to content

Commit f92ed0a

Browse files
committed
start implementing FOV change on MST
1 parent 56cf2bf commit f92ed0a

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

cfgMST.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@
3434
% height: 3.35264
3535
%
3636
% fixation cross displacement in degrees of visual angles
37-
% cfg.fixation.xDisplacement = 0;
37+
% this will also shift the whole FOV
38+
cfg.fixation.xDisplacement = 0;
3839
% cfg.fixation.yDisplacement = 0;
3940

4041
cfg.design.xDisplacementFixation = 3;
4142

4243
cfg.aperture.width = 6;
43-
cfg.design.xDisplacementAperture = 6;
44+
cfg.design.xDisplacementAperture = 3;
4445

4546
end

subfun/defaults/checkParameters.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177

178178
fieldsToSet.aperture.type = 'circle';
179179
fieldsToSet.aperture.width = 7; % if left empty it will take the screen height
180-
fieldsToSet.aperture.xPos = fieldsToSet.design.xDisplacementAperture;
180+
fieldsToSet.aperture.xPos = 0;
181181

182182
case 'mt'
183183

subfun/preTrialSetup.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434

3535
thisEvent.fixationPosition = cfg.design.blockFixationPosition{iBlock};
3636

37-
% cfg.aperture.xPosPix = cfg.design.xDisplacementAperturePix;
37+
cfg.aperture.xPos = cfg.design.xDisplacementAperture;
38+
cfg.aperture = degToPix('xPos', cfg.aperture, cfg);
3839

3940
switch thisEvent.fixationPosition
4041

@@ -56,12 +57,14 @@
5657

5758
if isfield(cfg.fixation, 'xDisplacementPix')
5859
thisEvent.dotCenterXPosPix = thisEvent.dotCenterXPosPix + cfg.fixation.xDisplacementPix;
59-
thisFixation.fixation.xDisplacement = thisFixation.fixation.xDisplacement + ...
60-
cfg.fixation.xDisplacementPix;
60+
% thisFixation.fixation.xDisplacement = thisFixation.fixation.xDisplacement + ...
61+
% cfg.fixation.xDisplacementPix;
6162
end
6263
if isfield(cfg.fixation, 'yDisplacementPix')
6364
end
6465

66+
thisFixation.fixation.allCoords;
67+
6568
thisFixation = initFixation(thisFixation);
6669

6770
end

0 commit comments

Comments
 (0)