limelight

This commit is contained in:
2024-01-17 19:40:57 -05:00
parent 1030a95456
commit 05182be6b4
4 changed files with 40 additions and 18 deletions

View File

@@ -7,6 +7,8 @@ package frc.robot.subsystems;
import java.io.File;
import java.io.IOException;
import com.kauailabs.navx.frc.AHRS;
import edu.wpi.first.math.geometry.Translation2d;
import edu.wpi.first.math.kinematics.SwerveModulePosition;
import edu.wpi.first.wpilibj.Filesystem;
@@ -39,10 +41,9 @@ public class Drive extends SubsystemBase {
final CanAndCoderSwerve arrieregaucheangle = new CanAndCoderSwerve(Constants.arrieregaucheAngle);
final CanAndCoderSwerve arrieredroitangle = new CanAndCoderSwerve(Constants.arrieredroitAngle); */
public void drive(double x, double y, double zRotation){
swerveDrive.drive(new Translation2d(x*2, y*2), zRotation, true, false);
}
swerveDrive.drive(new Translation2d(x*2, y*2), zRotation, true, false);}
/** Creates a new Drive. */
public Drive() {