This commit is contained in:
samuel desharnais 2024-02-01 18:09:36 -05:00
parent d3e55d0df2
commit d9e5fbde75
5 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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 {

View File

@ -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;

View File

@ -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);
}