Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow an [optional] address to be passed to Titta.init() #73

Merged
merged 3 commits into from
Jan 24, 2024

Conversation

iandol
Copy link
Contributor

@iandol iandol commented Jan 22, 2024

This optional parameter overrides the findAllEyeTrackers() code to specifiy a known address

overrides the findAllEyeTrackers() code to specifiy a specific address
@@ -519,7 +526,7 @@ function setOptions(obj,settings)
else
wfunc = @pause;
end
while true
while isempty(address)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, i don't think all this logic can be skipped. We need to check the provided eye tracker address connects to an eye tracker of the model set in the settings. also, this while isempty(address) is opaque, even if it would work correctly. I'll be scratching my head later.
To do this right, i need to add something to the mex file. After you fix the other things i'll merge the pull request and then i'll fix up the logic here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, it would be better to be more careful here 👍🏾

@dcnieho dcnieho merged commit f856fbc into dcnieho:master Jan 24, 2024
@dcnieho
Copy link
Owner

dcnieho commented Jan 24, 2024

I've implemented it slightly differently, currently untested (and mex file is rebuilt only for windows). Will finish it tomorrow.

@dcnieho
Copy link
Owner

dcnieho commented Jan 25, 2024

It should now be ready for use, thanks again for the idea!

@iandol iandol deleted the address branch January 27, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants