Skip to content

Commit efbefcf

Browse files
committed
make it possible to move dot texture vertically
1 parent b6098c7 commit efbefcf

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

cfgMST.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@
2626
%
2727
%
2828
% Field of view in DEGREES OF VISUAL ANGLES:
29-
% top left: 8.32304 1.60312
30-
% bottom right: 11.6757 3.49172
29+
% top left: 8.0 1.0
30+
% bottom right: 11.0 3.0
3131
%
3232
% Field of view in DEGREES OF VISUAL ANGLES:
33-
% width: 1.8886
34-
% height: 3.35264
33+
% width: 1.8
34+
% height: 3.3
3535
%
3636
% fixation cross displacement in degrees of visual angles
3737
% this will also shift the whole FOV
38-
cfg.fixation.xDisplacement = -2;
39-
% cfg.fixation.yDisplacement = 0;
38+
% cfg.fixation.xDisplacement = 0;
39+
cfg.fixation.yDisplacement = 1;
4040

4141
cfg.design.xDisplacementFixation = 2;
4242

lib/CPP_PTB

subfun/preTrialSetup.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@
6161
cfg.fixation.xDisplacement;
6262
end
6363

64+
if isfield(cfg.fixation, 'yDisplacementPix')
65+
cfg.aperture.yPosPix = cfg.fixation.yDisplacementPix;
66+
thisEvent.dotCenterYPosPix = cfg.aperture.yPosPix;
67+
end
68+
6469
thisEvent.dotCenterXPosPix = cfg.aperture.xPosPix;
6570

6671
if isfield(cfg.fixation, 'yDisplacementPix')

tests/test_checkParameters.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ function test_checkParameters_MT()
112112
cfg = removeDirFieldForGithubAction(cfg);
113113

114114
% uncomment for update default config .mat
115-
% expected = cfg;
116-
% save(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT.mat'), 'expected');
115+
% expected = cfg;
116+
% save(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT.mat'), 'expected');
117117
load(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT.mat'), 'expected');
118118

119119
% test
@@ -132,8 +132,8 @@ function test_checkParameters_MT_MST()
132132
cfg = removeDirFieldForGithubAction(cfg);
133133

134134
% uncomment for update default config .mat
135-
% expected = cfg;
136-
% save(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT_MST.mat'), 'expected');
135+
% expected = cfg;
136+
% save(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT_MST.mat'), 'expected');
137137
load(fullfile(fileparts(mfilename('fullpath')), 'data', 'config_MT_MST.mat'), 'expected');
138138

139139
% test

0 commit comments

Comments
 (0)