Open dylantknguyen opened 4 years ago
I found this resource on WPILib's documentation. While WPILib only supports Java and C++, some of it might still apply to us.
See https://github.com/tulser/5549-2020/blob/master/robot/shooter.py and look at function shootAuto()
for a proposed implementation.
This was implemented in 0ebfc56. It still needs more values for longer distances. Ask Ethan for the spreadsheet used for calculation.
Objective: To calculate RPM needed to shoot the ball a set distance away from the outer port.
Currently, there are no other solutions other than testing the capabilities of the shooter by running multiple tests. This would consist of setting the model outer port at different distances and changing the RPM to see whether it will reach the target at the RPM. Repeat this until the RPM is found and repeat for multiple distances.