mirror of
https://github.com/Team4388/2023WayOfTheRobot.git
synced 2026-06-09 00:37:59 -06:00
yes
This commit is contained in:
@@ -144,6 +144,7 @@ public class SwerveDrive extends SubsystemBase {
|
|||||||
@Override
|
@Override
|
||||||
public void periodic() {
|
public void periodic() {
|
||||||
// This method will be called once per scheduler run
|
// This method will be called once per scheduler run
|
||||||
|
updateOdometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ public class SwerveModule extends SubsystemBase {
|
|||||||
angleMotor.set(0);
|
angleMotor.set(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void rotateToAngle(double angle){
|
public void rotateToAngle(double angle) {
|
||||||
angleMotor.set(TalonFXControlMode.Position, angle);
|
angleMotor.set(TalonFXControlMode.Position, angle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user