You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: