balayeuse
This commit is contained in:
		| @@ -4,12 +4,26 @@ | |||||||
|  |  | ||||||
| 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.revrobotics.CANSparkMax; | ||||||
|  |  | ||||||
| import edu.wpi.first.wpilibj2.command.SubsystemBase; | import edu.wpi.first.wpilibj2.command.SubsystemBase; | ||||||
|  |  | ||||||
| public class Balayeuse extends SubsystemBase { | public class Balayeuse extends SubsystemBase { | ||||||
|   /** Creates a new Balayeuse. */ |   /** Creates a new Balayeuse. */   | ||||||
|  |   | ||||||
|   public Balayeuse() {} |   public Balayeuse() {} | ||||||
|  |    final WPI_TalonSRX Moteur = new WPI_TalonSRX(0); | ||||||
|  |   final TalonSRX Moteur2 = new TalonSRX(1); | ||||||
|  |  | ||||||
|  |   public void Accumulation(double vitesse){ | ||||||
|  |     Moteur.set(vitesse); | ||||||
|  |   } | ||||||
|  |   public void balayeuse(){ | ||||||
|  |     Moteur2.follow(Moteur); | ||||||
|  |     Moteur2.setInverted(true); | ||||||
|  |   } | ||||||
|   @Override |   @Override | ||||||
|   public void periodic() { |   public void periodic() { | ||||||
|     // This method will be called once per scheduler run |     // This method will be called once per scheduler run | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user