Skip to content

Commit

Permalink
Fix drive base radius calculation in TalonFX swerve template
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Jan 3, 2025
1 parent 13c78af commit 699709b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class Drive extends SubsystemBase {
public static final double DRIVE_BASE_RADIUS =
Math.max(
Math.max(
Math.hypot(TunerConstants.FrontLeft.LocationX, TunerConstants.FrontRight.LocationY),
Math.hypot(TunerConstants.FrontLeft.LocationX, TunerConstants.FrontLeft.LocationY),
Math.hypot(TunerConstants.FrontRight.LocationX, TunerConstants.FrontRight.LocationY)),
Math.max(
Math.hypot(TunerConstants.BackLeft.LocationX, TunerConstants.BackLeft.LocationY),
Expand Down

0 comments on commit 699709b

Please sign in to comment.