Strafe Velocity Tuner
Purpose
The Strafe Velocity Tuner determines the velocity of your robot when strafing (moving sideways) at full power. This value is essential for accurate path-following in Pedro Pathing.
Setup and Instructions
- Open the
StrafeVelocityTuner.java
OpMode. - Ensure your robot has enough space to strafe 40 inches to the right. You can adjust this distance in the FTC Dashboard under the
StrafeVelocityTuner
dropdown, but larger distances yield better results. - Run the OpMode.
Output
- Velocity: After the robot has completed the distance, the final velocity will be displayed in telemetry.
- Note: The robot may drift slightly after completing the movement. Ensure the testing area has adequate space.
Inputting the Results
- Open the
FConstants
class and navigate to thestatic{}
block. - Then, on a new line, add
FollowerConstants.yMovement = [OUTPUT]
, with[OUTPUT]
being the velocity output from the tuner.
Note: In Step 2, you only need to make a new line if you are not using the quickstart, otherwise, you can just modify the line that already does this.
Congratulations, you’ve completed the strafe velocity tuning!