|
34 | 34 |
|
35 | 35 | [el] = eyeTracker('Calibration', cfg); |
36 | 36 |
|
37 | | - % if isfield(cfg.design, 'localizer') && strcmpi(cfg.design.localizer, 'MT_MST') |
38 | | - % [cfg] = expDesignMtMst(cfg); |
39 | | - % else |
40 | 37 | [cfg] = expDesign(cfg); |
41 | | - % end |
42 | 38 |
|
43 | 39 | % Prepare for the output logfiles with all |
44 | 40 | logFile.extraColumns = cfg.extraColumns; |
|
77 | 73 | fprintf('\n - Running Block %.0f \n', iBlock); |
78 | 74 |
|
79 | 75 | eyeTracker('Message', cfg, ['start_block-', num2str(iBlock)]); |
| 76 | + |
80 | 77 | dots = []; |
81 | 78 | previousEvent.target = 0; |
| 79 | + |
82 | 80 | % For each event in the block |
83 | 81 | for iEvent = 1:cfg.design.nbEventsPerBlock |
84 | 82 |
|
|
99 | 97 | eyeTracker('Message', cfg, ... |
100 | 98 | ['start_trial-', num2str(iEvent), '_', thisEvent.trial_type]); |
101 | 99 |
|
102 | | - % we want to initialize the dots position when targets type is fixation cross |
103 | | - % or if this the first event of a target pair |
| 100 | + % we only reuse the dots position for targets that consists of |
| 101 | + % presenting static dots with the same position as those of the |
| 102 | + % previous trial |
| 103 | + % |
| 104 | + % TODO does not take into account what to do if 3 or more targets in a row |
104 | 105 | if strcmp(cfg.target.type, 'static_repeat') && ... |
105 | | - thisEvent.target == previousEvent.target |
| 106 | + strcmp(thisEvent.trial_type, 'static') && ... |
| 107 | + thisEvent.target == 1 && ... |
| 108 | + thisEvent.target == previousEvent.target |
106 | 109 | else |
107 | 110 | dots = []; |
108 | 111 | end |
|
0 commit comments