Merge branch 'master' into vision-april-lime

This commit is contained in:
Aarav Shah
2023-02-27 17:37:08 -07:00
committed by GitHub
14 changed files with 957 additions and 90 deletions
@@ -124,7 +124,10 @@ public class SwerveModule extends SubsystemBase {
// convert the CANCoder from its position reading to ticks
double currentTicks = encoder.getPosition() / encoder.configGetFeedbackCoefficient();
angleMotor.set(TalonFXControlMode.Position, currentTicks + deltaTicks);
if (!ignoreAngle) {
angleMotor.set(TalonFXControlMode.Position, currentTicks + deltaTicks);
}
double feetPerSecond = Units.metersToFeet(state.speedMetersPerSecond);