hk
This commit is contained in:
@ -3,18 +3,15 @@ package frc.robot;
|
||||
public class Constants {
|
||||
|
||||
//Moteur
|
||||
public static int lanceur = 0;
|
||||
public static int lanceur = 10;
|
||||
public static int avantdroitDrive = 17;
|
||||
public static int avantdroitAngle = 18;
|
||||
public static int avantgaucheDrive = 0;
|
||||
public static int avantgaucheAngle = 1;
|
||||
public static int avantgaucheDrive = 2;
|
||||
public static int avantgaucheAngle = 3;
|
||||
public static int arrieredroitDrive = 11;
|
||||
public static int arrieredroitAngle = 12;
|
||||
public static int arrieregaucheDrive = 8;
|
||||
public static int arrieregaucheAngle = 9;
|
||||
public static int accumulateur = 9;
|
||||
|
||||
//limit switch
|
||||
public static int ballon = 10;
|
||||
public static int accumulateur = 19;
|
||||
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ public class RobotContainer {
|
||||
GenericEntry force5 = forces.add("Force5", 0).getEntry();
|
||||
GenericEntry force6 = forces.add("Force6", 0).getEntry();
|
||||
GenericEntry force7 = forces.add("Force7", 0).getEntry();
|
||||
|
||||
|
||||
CommandXboxController manette = new CommandXboxController(0);
|
||||
CommandJoystick joystick1 = new CommandJoystick(0);
|
||||
Drive drive = new Drive();
|
||||
@ -51,7 +51,7 @@ public class RobotContainer {
|
||||
|
||||
configureBindings();
|
||||
drive.setDefaultCommand(new RunCommand(()->{
|
||||
drive.drive(joystick1.getX(), -joystick1.getY(), -joystick1.getZ());
|
||||
drive.drive(-joystick1.getY(), -joystick1.getX(), -joystick1.getZ());
|
||||
},drive));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user