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
In DrivetrainSubsystem.java, when constructing the SwerveDriveKinematics the code reads:
private final SwerveDriveKinematics m_kinematics = new SwerveDriveKinematics(
// Front left
new Translation2d(DRIVETRAIN_TRACKWIDTH_METERS / 2.0, DRIVETRAIN_WHEELBASE_METERS / 2.0),
// Front right
new Translation2d(DRIVETRAIN_TRACKWIDTH_METERS / 2.0, -DRIVETRAIN_WHEELBASE_METERS / 2.0),
// Back left
new Translation2d(-DRIVETRAIN_TRACKWIDTH_METERS / 2.0, DRIVETRAIN_WHEELBASE_METERS / 2.0),
// Back right
new Translation2d(-DRIVETRAIN_TRACKWIDTH_METERS / 2.0, -DRIVETRAIN_WHEELBASE_METERS / 2.0)
);
Each of the Translation2d() takes x and y, where x is a front-back direction and y is a left-right direction. I think that means the first values should be the wheelbase (going fore-aft) and then trackwidth (left-right) i.e. opposite what it currently is.
The signs all seem correct.
P.S. The robot we're currently experimenting with is close enough to square that we might not notice any issue.
The text was updated successfully, but these errors were encountered:
In DrivetrainSubsystem.java, when constructing the SwerveDriveKinematics the code reads:
Each of the Translation2d() takes x and y, where x is a front-back direction and y is a left-right direction. I think that means the first values should be the wheelbase (going fore-aft) and then trackwidth (left-right) i.e. opposite what it currently is.
The signs all seem correct.
P.S. The robot we're currently experimenting with is close enough to square that we might not notice any issue.
The text was updated successfully, but these errors were encountered: