limelight
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user