Skip to content

Commit e8627c6

Browse files
limit top speed to 80%
1 parent 7caba1a commit e8627c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/team1403/robot/commands/DefaultSwerveCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void execute() {
108108
SmartDashboard.putBoolean("isFieldRelative", m_isFieldRelative);
109109
//if (Constants.DEBUG_MODE) SmartDashboard.putBoolean("Aimbot", m_aimbotSupplier.getAsBoolean());
110110

111-
m_speedLimiter = 0.3 * (1.0 - m_snipingMode.getAsDouble() * 0.7) + (m_speedSupplier.getAsDouble() * 0.7);
111+
m_speedLimiter = 0.3 * (1.0 - m_snipingMode.getAsDouble() * 0.7) + squareNum(m_speedSupplier.getAsDouble()) * 0.7;
112112

113113
if (DriverStation.isAutonomousEnabled()) {
114114
m_drivetrainSubsystem.drive(new ChassisSpeeds());

0 commit comments

Comments
 (0)