- /*
- * We are going to map a lidar distance to a shooter speed that will be set to
- * the shooter. This function does not yet exist so we will just use y=x but
- * when testing commences we shall create the function
- */
- public double getShooterSpeed() {
- double distanceToGoal = lidar.getDistance();
- double shooterSpeed = distanceToGoal; // Function to be determined
- return shooterSpeed;
- }
-
- // Use negative # for decrement. Positive for increment.
-
- public void changeSpeed(double change) {
- double newSpeed = getSpeed() + change;
- setSpeed(newSpeed);
+ public void resetCatapult() {
+ catapult1.set(Constants.Shooter.reset);
+ catapult2.set(Constants.Shooter.reset);