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

Add method to convert IR readings into inches. #248

Open
JCharante opened this issue Mar 11, 2018 · 2 comments
Open

Add method to convert IR readings into inches. #248

JCharante opened this issue Mar 11, 2018 · 2 comments
Assignees

Comments

@JCharante
Copy link
Collaborator

No description provided.

@BenBernardCIS
Copy link
Contributor

You should be able to find an example of this in Tony's code.

@JCharante
Copy link
Collaborator Author

I started on this in https://github.com/frc5687/2018-robot/tree/Intake/%23248-convertToDistance a couple days ago. Feel free to start from scratch, but essentially I created some enums for the different model/flavors of IR sensors we use, and then for BACK_IR & DOWN_IR in Constants where we normally put whether they're enabled or not, I added a sibling variable whose value is one of the enums, and in the method / class where we use the transform power & coefficient said values where obtained from the constants file depending on which enum was passed into the constructor.

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

3 participants