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

Manage shooter configuration lookup table #22

Closed
nmp2965 opened this issue Jan 21, 2024 · 0 comments · Fixed by #46
Closed

Manage shooter configuration lookup table #22

nmp2965 opened this issue Jan 21, 2024 · 0 comments · Fixed by #46
Assignees

Comments

@nmp2965
Copy link
Collaborator

nmp2965 commented Jan 21, 2024

Background: Anthony explained that in shooting games, Code Orange has always found success with using a lookup table to determine adjustable parameters from different locations on the field. Trying to just use a mathematical function for this kind of thing typically does not work as well as using empirically determined measurements.

https://docs.google.com/spreadsheets/d/1HUllof7VjpUjEYZCOTbGfCBjRisSzx5iEvIpU1UpZEI/edit#gid=0 is a spreadsheet where we can store the results of testing the shooter. This sheet can be exported as a CSV file and stored in the robot's "deploy" folder.

The field names are in the first line of the file and are: distance_to_speaker, direction, location, shooter_height, shooter_angle, shooter_velocity.

Write Java code that loads the CSV file into a data structure. Write a function that efficiently looks up one record from the file by providing two values: distance_to_speaker and direction_location.

This way, whenever the robot is ready to shoot, we can get the distance and the robot orientation (forwards or reverse towards the speaker) and then find out how to position the arm and prepare the shooter to score from that location. As we continue to test and refine the prototype, we can adjust the values in the spreadsheet and easily update the robot code.

Add this functionality to the existing "Superstructure" subsystem.

@nmp2965 nmp2965 self-assigned this Jan 27, 2024
@dlpond917 dlpond917 assigned salam2244 and unassigned nmp2965 Jan 28, 2024
@dlpond917 dlpond917 changed the title Superstructure - Manage shooter configurations Manage shooter configuration lookup table Jan 30, 2024
@salam2244 salam2244 linked a pull request Feb 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants