Class MapleSimSwerveDrivetrain

java.lang.Object
frc.spectrumLib.swerve.MapleSimSwerveDrivetrain

public class MapleSimSwerveDrivetrain extends Object
Injects Maple-Sim data into a CTRE SwerveDrivetrain. Stands in for SimSwerveDrivetrain.
  • Field Details

  • Constructor Details

  • Method Details

    • update

      public void update()
      Steps the arena and copies the resulting yaw and yaw rate into the Pigeon2's sim state.
    • regulateModuleConstantsForSimulation

      public static SwerveModuleConstants<?,?,?>[] regulateModuleConstantsForSimulation(SwerveModuleConstants<?,?,?>[] moduleConstants)
      Applies simulation-only constant overrides to every module. See regulateModuleConstantForSimulation(SwerveModuleConstants) for what changes and why.