Skip to content

Commit 85564d5

Browse files
committed
adding TODOs and fields to update in eyetracking function
1 parent 16925e2 commit 85564d5

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

src/eyeTracker.m

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@
100100
% coordinates, here for 6 dots.
101101

102102
% [width, height]=Screen('WindowSize', screenNumber);
103+
104+
% TODO - update those values with the content set up by
105+
% CPP_PTB in the cfg
106+
% fieldsToSet.eyeTracker.CalibrationPosition = '';
103107

104108
Eyelink('Command', 'calibration_samples = 6');
105109
Eyelink('Command', 'calibration_sequence = 0,1,2,3,4,5');
@@ -129,7 +133,16 @@
129133

130134
% Enter Eyetracker camera setup mode, calibration and validation.
131135
EyelinkDoTrackerSetup(el);
132-
136+
137+
% TODO - update content of cfg after initializing and
138+
% calibration
139+
% fieldsToSet.eyeTracker.SamplingFrequency = [];
140+
% fieldsToSet.eyeTracker.Manufacturer = '';
141+
% fieldsToSet.eyeTracker.ManufacturersModelName = '';
142+
% fieldsToSet.eyeTracker.SoftwareVersions = '';
143+
% fieldsToSet.eyeTracker.MaximalCalibrationError = [];
144+
% fieldsToSet.eyeTracker.AverageCalibrationError = [];
145+
133146
% Go back to default screen background color.
134147
Screen('FillRect', cfg.screen.win, cfg.color.background);
135148
Screen('Flip', cfg.screen.win);

src/utils/setDefaultsPTB.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363

6464
end
6565

66-
if isfield(cfg, 'eyeTracker')
67-
66+
if isfield(cfg, 'eyeTracker') && cfg.eyeTracker.do
67+
6868
% Calibration environment
6969
fieldsToSet.eyeTracker.defaultCalibration = true;
7070
fieldsToSet.eyeTracker.backgroundColor = [192 192 192];

0 commit comments

Comments
 (0)