mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Upgrading to 2025.1.0.1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user