balayeuse
This commit is contained in:
parent
daf18d0618
commit
bb8b80c3b9
@ -4,12 +4,26 @@
|
||||
|
||||
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;
|
||||
|
||||
public class Balayeuse extends SubsystemBase {
|
||||
/** Creates a new Balayeuse. */
|
||||
/** Creates a new 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
|
||||
public void periodic() {
|
||||
// This method will be called once per scheduler run
|
||||
|
Loading…
x
Reference in New Issue
Block a user