lanceur
This commit is contained in:
		| @@ -7,7 +7,6 @@ package frc.robot; | ||||
| import edu.wpi.first.cameraserver.CameraServer; | ||||
| import edu.wpi.first.math.MathUtil; | ||||
| import edu.wpi.first.wpilibj2.command.Command; | ||||
| import edu.wpi.first.wpilibj2.command.Commands; | ||||
| import edu.wpi.first.wpilibj2.command.RunCommand; | ||||
| import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; | ||||
| // Manette | ||||
|   | ||||
| @@ -4,10 +4,10 @@ | ||||
|  | ||||
| package frc.robot.command; | ||||
|  | ||||
| import com.revrobotics.CANSparkMax; | ||||
|  | ||||
|  | ||||
| import edu.wpi.first.wpilibj2.command.Command; | ||||
| import frc.robot.subsystem.Accumulateur; | ||||
|  | ||||
| import frc.robot.subsystem.Lanceur; | ||||
|  | ||||
| public class Lancer extends Command { | ||||
|   | ||||
| @@ -4,10 +4,10 @@ | ||||
|  | ||||
| package frc.robot.command; | ||||
|  | ||||
| import com.revrobotics.CANSparkMax; | ||||
|  | ||||
|  | ||||
| import edu.wpi.first.wpilibj2.command.Command; | ||||
| import frc.robot.subsystem.Accumulateur; | ||||
|  | ||||
| import frc.robot.subsystem.Lanceur; | ||||
|  | ||||
| public class Lancerampli extends Command { | ||||
|   | ||||
| @@ -4,7 +4,7 @@ | ||||
|  | ||||
| package frc.robot.subsystem; | ||||
|  | ||||
| import com.ctre.phoenix.motorcontrol.can.TalonSRX; | ||||
|  | ||||
| import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX; | ||||
|  | ||||
| import edu.wpi.first.wpilibj2.command.SubsystemBase; | ||||
|   | ||||
| @@ -20,7 +20,9 @@ public class Lanceur extends SubsystemBase { | ||||
|   final CANSparkMax lancer2 = new CANSparkMax(Constants.lancer2, MotorType.kBrushless); | ||||
|   final CANSparkMax lancer3 = new CANSparkMax(Constants.lancer3, MotorType.kBrushless); | ||||
|   final CANSparkMax lancer4 = new CANSparkMax(Constants.lancer4, MotorType.kBrushless); | ||||
|  | ||||
|   public void pid(){ | ||||
|     lancer.getPIDController(); | ||||
|   } | ||||
|   public void lancer(double vitesse){ | ||||
|     lancer.set(vitesse); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user