This commit is contained in:
EdwardFaucher 2022-12-10 14:53:29 -05:00
parent 14db0f41fb
commit 92d35d19f8
3 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@ package frc.robot;
public final class Constants { public final class Constants {
public static final int MoteurAvantGauche = (3); public static final int MoteurAvantGauche = (3);
public static final int MoteurAvantDroit = (4); public static final int MoteurAvantDroit = (4);
public static final int MoteurArriereGauche = (1); public static final int MoteurArriereGauche = (2);
public static final int MoteurArriereDroit = (2); public static final int MoteurArriereDroit = (1);
public static final int PistonPousserR = 0; public static final int PistonPousserR = 0;
public static final int PistonPousserF = 1; public static final int PistonPousserF = 1;

View File

@ -55,7 +55,7 @@ public class RobotContainer {
basePilotable.setDefaultCommand( basePilotable.setDefaultCommand(
new RunCommand( new RunCommand(
()-> basePilotable.drive(manette.getLeftY(), manette.getLeftX(), manette.getLeftTriggerAxis()-manette.getRightTriggerAxis()), basePilotable) ()-> basePilotable.drive(-manette.getLeftY(), manette.getLeftX(), -manette.getLeftTriggerAxis()+manette.getRightTriggerAxis()), basePilotable)
); );
} }

View File

@ -31,7 +31,7 @@ public double getangle() {
return gyroscope.getAngle(); return gyroscope.getAngle();
} }
public void drive(double y, double x, double rot){ public void drive(double y, double x, double rot){
mecanum.driveCartesian(y, rot, -x, 0); mecanum.driveCartesian(y, x, rot, 0);
} }
public void resetgyro(){ public void resetgyro(){
try { gyroscope.reset(); } catch( Exception e) {DriverStation.reportError("bye bye", true); } try { gyroscope.reset(); } catch( Exception e) {DriverStation.reportError("bye bye", true); }