https://github.com/RaymondLab/Code
Tip revision: 8ed0bc61f74cbe8b9d07278a25fd9f49c0af3f2b authored by Kellen Vu on 03 November 2022, 01:23:38 UTC
Fixes a bug where eyeCalibration.mlapp was trying to get the sample rate from the wrong smr channel. I tested this in D243b, and it should work for other computers, but let me know if it doesn't.
Fixes a bug where eyeCalibration.mlapp was trying to get the sample rate from the wrong smr channel. I tested this in D243b, and it should work for other computers, but let me know if it doesn't.
Tip revision: 8ed0bc6
GetEyeHeadDataXworkNew.m
function EyeHeadData = GetEyeHeadDataXworkNew
clear
XWORK = uigetfile('*.00**','Enter file');
data = readcxdata(XWORK, 0, 7);
MaestroConvEPos = 0.025;
MaestroConvEVel = 0.0919;
MaestroConvHVel = 0.1057;
Epos = MaestroConvEPos*data.data(1, :);
Evel = MaestroConvEVel*data.data(2, :); %hevel, just to compare with Eye_velocity obtained by VOREyeHeadDataFitAK
Hvel = MaestroConvHVel*data.data(4, :);
EyeHeadData.lh = [];
EyeHeadData.headvel = [];
EyeHeadData.eyevel = [];%hevel, just to compare with Eye_velocity obtained by VOREyeHeadDataFitAK
EyeHeadData.lh = Epos;
EyeHeadData.eyevel = Evel;%hevel, just to compare with Eye_velocity obtained by VOREyeHeadDataFitAK
EyeHeadData.headvel = Hvel;
