From 4452529be059c5fbe4aaf9190f25cfc734715f01 Mon Sep 17 00:00:00 2001 From: kartofen Date: Thu, 7 Mar 2024 06:05:41 +0200 Subject: orks --- src/main/java/frc/robot/subsystems/Shooter.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main/java/frc/robot/subsystems/Shooter.java') diff --git a/src/main/java/frc/robot/subsystems/Shooter.java b/src/main/java/frc/robot/subsystems/Shooter.java index f171049..677073c 100644 --- a/src/main/java/frc/robot/subsystems/Shooter.java +++ b/src/main/java/frc/robot/subsystems/Shooter.java @@ -1,17 +1,19 @@ package frc.robot.subsystems; import org.littletonrobotics.junction.Logger; + +import com.revrobotics.CANSparkLowLevel.MotorType; import com.revrobotics.CANSparkMax; import edu.wpi.first.wpilibj2.command.SubsystemBase; import frc.robot.Constants; public class Shooter extends SubsystemBase -{ - private final CANSparkMax m_shooterT = Constants.shooterT; - private final CANSparkMax m_shooterD = Constants.shooterD; +{ + public static final CANSparkMax m_shooterT = new CANSparkMax(Constants.shooterT_ID, MotorType.kBrushless); + public static final CANSparkMax m_shooterD = new CANSparkMax(Constants.shooterD_ID, MotorType.kBrushless); - public Shooter() { } + public Shooter() {} public void atPercentage(double perc) { -- cgit v1.2.3