summaryrefslogtreecommitdiff
path: root/src/main/java/frc/robot/subsystems/Shooter.java
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2024-03-07 06:05:41 +0200
committerkartofen <mladenovnasko0@gmail.com>2024-03-07 06:05:41 +0200
commit4452529be059c5fbe4aaf9190f25cfc734715f01 (patch)
tree9483caad7d9316dc06c1e61eceaeb8172b74577d /src/main/java/frc/robot/subsystems/Shooter.java
parent1ceb7c4d5ff83eca3009a0197a431d9c1441bef7 (diff)
orks
Diffstat (limited to 'src/main/java/frc/robot/subsystems/Shooter.java')
-rw-r--r--src/main/java/frc/robot/subsystems/Shooter.java10
1 files changed, 6 insertions, 4 deletions
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)
{