This repository was archived by the owner on May 19, 2024. It is now read-only.
File tree 2 files changed +4
-3
lines changed
src/main/java/frc/robot/swerve
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ private ChassisSpeeds clampChassisSpeeds(ChassisSpeeds desiredChassisSpeeds) {
90
90
double vyMetersPerSecond =
91
91
yAccelerationLimiter .calculate (desiredChassisSpeeds .vyMetersPerSecond );
92
92
double omegaRadiansPerSecond =
93
- rotationVelocityClamper .apply (
94
- Units .radiansToRotations (desiredChassisSpeeds .omegaRadiansPerSecond ));
93
+ Units . rotationsToRadians ( rotationVelocityClamper .apply (
94
+ Units .radiansToRotations (desiredChassisSpeeds .omegaRadiansPerSecond ))) ;
95
95
96
96
return new ChassisSpeeds (vxMetersPerSecond , vyMetersPerSecond , omegaRadiansPerSecond );
97
97
}
Original file line number Diff line number Diff line change @@ -34,8 +34,9 @@ public class Swerve extends Subsystem {
34
34
.withMaximumAcceleration (18 ); // meters per second per second
35
35
36
36
/** Rotation motion profile config. */
37
+ // TODO Verify
37
38
private final MotionProfileConfig rotationMotionProfileConfig =
38
- new MotionProfileConfig ().withMaximumVelocity (0.25 ); // rotations per second
39
+ new MotionProfileConfig ().withMaximumVelocity (1 ); // rotations per second
39
40
40
41
/** Initializes the swerve subsystem and configures swerve hardware. */
41
42
private Swerve () {
You can’t perform that action at this time.
0 commit comments