mirror of
https://github.com/Team4388/2024AcrossTheRidgebotiverse.git
synced 2026-06-09 00:38:02 -06:00
PID no work
This commit is contained in:
@@ -53,9 +53,15 @@ public class SwerveDrive extends SubsystemBase {
|
||||
this.modules = new SwerveModule[] {this.leftFront, this.rightFront, this.leftBack, this.rightBack};
|
||||
}
|
||||
|
||||
public void oneModuleTest(SwerveModule module, Translation2d leftStick, Translation2d rightStick){
|
||||
double ang = (Math.atan2(rightStick.getY(), rightStick.getX()) / (Math.PI*2));
|
||||
System.out.println(ang);
|
||||
module.go(ang);
|
||||
}
|
||||
|
||||
boolean stopped = false;
|
||||
public void driveWithInput(Translation2d leftStick, Translation2d rightStick, boolean fieldRelative) {
|
||||
rightFront.go(leftStick);
|
||||
|
||||
// if (fieldRelative) {
|
||||
|
||||
// double rot = 0;
|
||||
|
||||
Reference in New Issue
Block a user