hncfcb
This commit is contained in:
parent
14db0f41fb
commit
92d35d19f8
@ -17,8 +17,8 @@ package frc.robot;
|
||||
public final class Constants {
|
||||
public static final int MoteurAvantGauche = (3);
|
||||
public static final int MoteurAvantDroit = (4);
|
||||
public static final int MoteurArriereGauche = (1);
|
||||
public static final int MoteurArriereDroit = (2);
|
||||
public static final int MoteurArriereGauche = (2);
|
||||
public static final int MoteurArriereDroit = (1);
|
||||
|
||||
public static final int PistonPousserR = 0;
|
||||
public static final int PistonPousserF = 1;
|
||||
|
@ -55,7 +55,7 @@ public class RobotContainer {
|
||||
|
||||
basePilotable.setDefaultCommand(
|
||||
new RunCommand(
|
||||
()-> basePilotable.drive(manette.getLeftY(), manette.getLeftX(), manette.getLeftTriggerAxis()-manette.getRightTriggerAxis()), basePilotable)
|
||||
()-> basePilotable.drive(-manette.getLeftY(), manette.getLeftX(), -manette.getLeftTriggerAxis()+manette.getRightTriggerAxis()), basePilotable)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ public double getangle() {
|
||||
return gyroscope.getAngle();
|
||||
}
|
||||
public void drive(double y, double x, double rot){
|
||||
mecanum.driveCartesian(y, rot, -x, 0);
|
||||
mecanum.driveCartesian(y, x, rot, 0);
|
||||
}
|
||||
public void resetgyro(){
|
||||
try { gyroscope.reset(); } catch( Exception e) {DriverStation.reportError("bye bye", true); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user