id
This commit is contained in:
		| @@ -66,6 +66,6 @@ public class RobotContainer { | ||||
|   } | ||||
|  | ||||
|   public Command getAutonomousCommand() { | ||||
|     return Commands.print("No autonomous command configured"); | ||||
|     return autoChooser.getSelected(); | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -13,11 +13,11 @@ import edu.wpi.first.wpilibj2.command.SubsystemBase; | ||||
| public class Pince extends SubsystemBase { | ||||
|   /** Creates a new Pince. */ | ||||
|   public Pince() {} | ||||
|   final SparkMax coral = new SparkMax(0, MotorType.kBrushless); | ||||
|   final SparkMax pivoti = new SparkMax(0, MotorType.kBrushless); | ||||
|   final SparkMax algue1 = new SparkMax(0, MotorType.kBrushless); | ||||
|   final SparkMax algue2 = new SparkMax(0, MotorType.kBrushless); | ||||
|   final DigitalInput limit6 = new DigitalInput(0); | ||||
|   final SparkMax coral = new SparkMax(1, MotorType.kBrushless); | ||||
|   final SparkMax pivoti = new SparkMax(2, MotorType.kBrushless); | ||||
|   final SparkMax algue1 = new SparkMax(4, MotorType.kBrushless); | ||||
|   final SparkMax algue2 = new SparkMax(5, MotorType.kBrushless); | ||||
|   final DigitalInput limit6 = new DigitalInput(2); | ||||
|   public void aspirecoral(double vitesse){ | ||||
|     coral.set(vitesse); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user