This commit is contained in:
parent
97c2e585f4
commit
3308e078d1
@ -11,6 +11,6 @@ public class Constants {
|
|||||||
public static int lancer2 = 2;
|
public static int lancer2 = 2;
|
||||||
public static int roue = 3;
|
public static int roue = 3;
|
||||||
public static int etoile = 4;
|
public static int etoile = 4;
|
||||||
public static int Accumulationneur1 = 5;
|
public static int Deaccumulationneur1 = 5;
|
||||||
public static int Accumulationneur2 = 6;
|
public static int Deaccumulationneur2 = 6;
|
||||||
}
|
}
|
||||||
|
@ -7,12 +7,14 @@ package frc.robot.subsystem;
|
|||||||
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;
|
||||||
|
import frc.robot.Constants;
|
||||||
|
|
||||||
public class Accumulateur extends SubsystemBase {
|
public class Accumulateur extends SubsystemBase {
|
||||||
/** Creates a new Accumulateur. */
|
/** Creates a new Accumulateur. */
|
||||||
public Accumulateur() {}
|
public Accumulateur() {}
|
||||||
final WPI_TalonSRX Accumulationneur1 = new WPI_TalonSRX(1);
|
final WPI_TalonSRX Deaccumulationneur1 = new WPI_TalonSRX(Constants.Deaccumulationneur1);
|
||||||
final WPI_TalonSRX Accumulationneur2 = new WPI_TalonSRX(0);
|
final WPI_TalonSRX Deaccumulationneur2 = new WPI_TalonSRX(Constants.Deaccumulationneur2);
|
||||||
|
|
||||||
@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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user