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

Take encoder res from hardware file #43

Open
k1o0 opened this issue Mar 16, 2019 · 0 comments
Open

Take encoder res from hardware file #43

k1o0 opened this issue Mar 16, 2019 · 0 comments
Assignees

Comments

@k1o0
Copy link
Contributor

k1o0 commented Mar 16, 2019

Instead of hardcoding rig name, load the hardware file and take the resolution from there. Ideally load the JSON file first as encoders might get switched and the hardware files updated.

encRes = rig.mouseInput.EncoderResolution;
catch % Use lookup table instead
switch lower(data.rigName) % TODO: add to rig hardware
case {'zym1', 'zym2', 'zym3'}
encRes = 360;
case {'zurprise', 'zym4'}
encRes = 100;
otherwise
encRes = 1024;
end

catch % Use lookup table instead
switch lower(data.rigName) % TODO: add to rig hardware
case {'zym1', 'zym2', 'zym3'}
encRes = 360;
case {'zurprise', 'zym4'}
encRes = 100;
otherwise
encRes = 1024;
end

@k1o0 k1o0 self-assigned this Mar 16, 2019
k1o0 added a commit that referenced this issue Dec 18, 2019
k1o0 added a commit that referenced this issue Dec 18, 2019
k1o0 added a commit that referenced this issue Dec 18, 2019
k1o0 added a commit that referenced this issue Dec 18, 2019
k1o0 added a commit that referenced this issue Dec 18, 2019
@k1o0 k1o0 mentioned this issue Dec 19, 2019
k1o0 added a commit that referenced this issue Feb 13, 2020
* Started block2ALF test

* getexpmeta endpoint no longer exists

* Completed block sim

* Issue #43

* Issue #43

* #43 Successfully reading JSON

* Signals extraction succeeds

* More robust tests for signals block extraction

* Finished all tests; reduced Rigbox util dependencies

* Updates changelog
k1o0 added a commit that referenced this issue Feb 14, 2020
* HOTFIX for assersion error in newExp

* Added test for newExp assertion; updates to CHANGELOG, README

* HOTFIX updated error message for exp ref

* More informative error for subject folder mismatch (#64)

* Revert "HOTFIX updated error message for exp ref"
Wrong credentials used and mistakes in code

This reverts commit e0a596d.

* More informative error for subject folder mismatch

* Updated test for newExp

* Badges update

* Block2 alf test (#69)

* Started block2ALF test

* getexpmeta endpoint no longer exists

* Completed block sim

* Issue #43

* Issue #43

* #43 Successfully reading JSON

* Signals extraction succeeds

* More robust tests for signals block extraction

* Finished all tests; reduced Rigbox util dependencies

* Updates changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant