Skip to content

Commit

Permalink
Remove vestigial slew rate limiting member variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jfabellera committed Nov 16, 2024
1 parent 345fb05 commit cecabe0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/main/include/subsystems/DriveSubsystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<units::scalar> m_magLimiter{
DriveConstants::kMagnitudeSlewRate / 1_s};
frc::SlewRateLimiter<units::scalar> 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;
Expand Down

0 comments on commit cecabe0

Please # to comment.