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

branch: calibration #18

Open
jessegreenberg opened this issue Oct 25, 2021 · 3 comments
Open

branch: calibration #18

jessegreenberg opened this issue Oct 25, 2021 · 3 comments

Comments

@jessegreenberg
Copy link
Contributor

A branch to test a way to calibrate the sim to a physical device.

@jessegreenberg
Copy link
Contributor Author

On this branch we have a prototype for calibrating the device to sim model space and controlling vertex positions from angle/length data from the device.

For the calibration we ask the user to create the largest shape possible and take a snapshot of physical lengths in that configuration. We use those lengths to create a linear function to map physical space into model space.

For the control, a function was added to turn angle/length data into positions of vertices. It works by anchoring the top side horizontally and then centering the shape around the of model space.

https://phet-dev.colorado.edu/html/jg-tests/quadrilateral/calibration-demo-1/quadrilateral-calibration-demo.html

@jessegreenberg
Copy link
Contributor Author

It works OK but it is unfortunate that we have no knowledge of which side moves or the orientation of the device. We discussed in meeting today that we may add a gyroscope or other sensors to have the sim model more accurately match the physical model.

@jessegreenberg
Copy link
Contributor Author

Scott and I were able to get this working well with the current quadrilateral device today.

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

No branches or pull requests

1 participant