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

Treadmill tracking values #27

Open
ananthamurthy opened this issue Feb 15, 2018 · 3 comments
Open

Treadmill tracking values #27

ananthamurthy opened this issue Feb 15, 2018 · 3 comments
Assignees

Comments

@ananthamurthy
Copy link
Owner

Hey, to track the treadmill motion, we need to figure out what values are being saved by the Arduino, in the dataLine. This might be specific to the model of the mouse we're using with behaviour1 (Bheja-Fry). We might have to confirm, but I think this is the Logitech G500s.

@dilawar
Copy link
Contributor

dilawar commented Feb 19, 2018

Mouse position x and y are pixel values. On behaviour box computer, these values are

dilawars@Bhallalab-common5 ~ $ xdpyinfo | grep dimensions
  dimensions:    1680x1050 pixels (444x277 millimeters)

i.e. each pixel represents 0.24628 mm . A radial velocity of v pixel / time is v*0.2463 mm/time.

I am not hardcoding this value in arduino. This factor will differ with different monitor; resolution. In post processing, one can use this value to get the speed in mm/time.

@dilawar dilawar closed this as completed Feb 19, 2018
@dilawar dilawar self-assigned this Feb 19, 2018
@dilawar
Copy link
Contributor

dilawar commented Feb 19, 2018

These values above are not correct since I used 'ssh` and resolution of my monitory is used (I guess). To be sure, run the above command on behaviour box and divide the millimeters values by pixel value.

@ananthamurthy
Copy link
Owner Author

Dilawar, I think the best would be to save the values (even if pre-processed) in the dataLine. Something generic. Also, the monitor resolution, now will not change. Also, all the other values are coming from there, as well.

@ananthamurthy ananthamurthy reopened this Feb 20, 2018
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

2 participants