Merge branch 'main' of https://demerso.net/pls5618/2023/robot
This commit is contained in:
		| @@ -5,6 +5,25 @@ public class Constants { | ||||
|     public static int avantgauche = 1; | ||||
|     public static int arrieredroit = 2; | ||||
|     public static int arrieregauche = 3; | ||||
| <<<<<<< HEAD | ||||
|     public static int BrasTelescopique = 5; | ||||
| ======= | ||||
| <<<<<<< HEAD | ||||
|     // pneumatique | ||||
|     public static int pistonpinceouvre = 0; | ||||
|     public static int pistonpinceferme = 1; | ||||
|  | ||||
| ======= | ||||
| <<<<<<< HEAD | ||||
|     public static int BrasTelescopique = 5; | ||||
| >>>>>>> a6d29dff41c9186a3dd56354d6416a625159f366 | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| ======= | ||||
| >>>>>>> 574a86d6fc0c2873af374a5d04dc6081c08a4c02 | ||||
|     public static int actuateur = 4; | ||||
| } | ||||
|   | ||||
| @@ -4,14 +4,28 @@ | ||||
|  | ||||
| package frc.robot.subsystems.bras; | ||||
|  | ||||
| import edu.wpi.first.wpilibj.DoubleSolenoid; | ||||
| import edu.wpi.first.wpilibj.PneumaticsModuleType; | ||||
| import edu.wpi.first.wpilibj2.command.SubsystemBase; | ||||
| import edu.wpi.first.wpilibj.DoubleSolenoid.Value; | ||||
| import frc.robot.Constants; | ||||
|  | ||||
| public class Pince extends SubsystemBase { | ||||
|   private DoubleSolenoid pistonPince = new DoubleSolenoid(PneumaticsModuleType.CTREPCM,Constants.pistonpinceouvre, Constants.pistonpinceferme); | ||||
|   /** Creates a new Pince. */ | ||||
|   public Pince() {} | ||||
|   public Pince() { | ||||
|     | ||||
|   } | ||||
| public void fermer() { | ||||
|      pistonPince.set(Value.kReverse); | ||||
|      | ||||
|    } | ||||
|    public void ouvrir() { | ||||
|      pistonPince.set(Value.kForward); | ||||
|  | ||||
|    } | ||||
|   @Override | ||||
|   public void periodic() { | ||||
|     // This method will be called once per scheduler run | ||||
|      | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user