From cecabe0f479366d3d7408f4dd34f3e2cb3118c7d Mon Sep 17 00:00:00 2001 From: Jan-Felix Abellera Date: Fri, 15 Nov 2024 19:47:26 -0600 Subject: [PATCH] Remove vestigial slew rate limiting member variables --- src/main/include/subsystems/DriveSubsystem.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main/include/subsystems/DriveSubsystem.h b/src/main/include/subsystems/DriveSubsystem.h index 745d773..37849ec 100644 --- a/src/main/include/subsystems/DriveSubsystem.h +++ b/src/main/include/subsystems/DriveSubsystem.h @@ -112,17 +112,6 @@ class DriveSubsystem : public frc2::SubsystemBase { // The gyro sensor frc::ADIS16470_IMU m_gyro; - // Slew rate filter variables for controlling lateral acceleration - double m_currentRotation = 0.0; - double m_currentTranslationDir = 0.0; - double m_currentTranslationMag = 0.0; - - frc::SlewRateLimiter m_magLimiter{ - DriveConstants::kMagnitudeSlewRate / 1_s}; - frc::SlewRateLimiter m_rotLimiter{ - DriveConstants::kRotationalSlewRate / 1_s}; - double m_prevTime = wpi::Now() * 1e-6; - // Odometry class for tracking robot pose // 4 defines the number of modules frc::SwerveDriveOdometry<4> m_odometry;