Upgrading to 2025.1.0.1

This commit is contained in:
thenetworkgrinch
2024-12-17 18:49:55 +00:00
parent 4bc6978a20
commit 8050f43fa5
19 changed files with 1189 additions and 263 deletions

View File

@@ -3,6 +3,7 @@ package swervelib.parser;
import edu.wpi.first.math.geometry.Translation2d;
import edu.wpi.first.math.system.plant.DCMotor;
import java.util.function.Supplier;
import org.ironmaple.simulation.drivesims.COTS;
import org.ironmaple.simulation.drivesims.GyroSimulation;
import swervelib.SwerveModule;
import swervelib.imu.NavXSwerve;
@@ -153,12 +154,12 @@ public class SwerveDriveConfiguration
{
if (imu instanceof Pigeon2Swerve)
{
return GyroSimulation.getPigeon2();
return COTS.ofPigeon2();
} else if (imu instanceof NavXSwerve)
{
return GyroSimulation.getNav2X();
return COTS.ofNav2X();
}
return GyroSimulation.getGeneric();
return COTS.ofGenericGyro();
}
}