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