mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 08:48:07 -06:00
sum auto shtuff
This commit is contained in:
@@ -127,10 +127,10 @@ public class RobotContainer {
|
||||
testFirstPath,
|
||||
m_robotSwerveDrive::getOdometry,
|
||||
m_robotSwerveDrive.m_kinematics,
|
||||
new PIDController(0.0, 0.0, 0.0),
|
||||
new PIDController(0.0, 0.0, 0.0),
|
||||
new ProfiledPIDController(0.0, 0.0, 0.0, new TrapezoidProfile.Constraints(Math.PI, Math.PI)),
|
||||
m_robotSwerveDrive::setModuleStates,
|
||||
new PIDController(0.0, 0.0, 0.0),
|
||||
new PIDController(0.0, 0.0, 0.0),
|
||||
new ProfiledPIDController(1.0, 0.0, 0.0, new TrapezoidProfile.Constraints(Math.PI, Math.PI)),
|
||||
m_robotSwerveDrive::setModuleStates,
|
||||
m_robotSwerveDrive
|
||||
);
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ public class SwerveDrive extends SubsystemBase {
|
||||
for (int i = 0; i < desiredStates.length; i++) {
|
||||
SwerveModule module = modules[i];
|
||||
SwerveModuleState state = desiredStates[i];
|
||||
module.setDesiredState(state, ignoreAngles);
|
||||
module.setDesiredState(state, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user