summaryrefslogtreecommitdiff
path: root/src/main/java/frc/robot/Constants.java
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2024-03-08 10:55:54 +0200
committerkartofen <mladenovnasko0@gmail.com>2024-03-08 10:55:54 +0200
commit01d6a7ef435dd9f6835fc3916a7f623395288490 (patch)
treed47bf6478e4b76009948b932cd86e4d49b56c267 /src/main/java/frc/robot/Constants.java
parent4452529be059c5fbe4aaf9190f25cfc734715f01 (diff)
changes
Diffstat (limited to 'src/main/java/frc/robot/Constants.java')
-rw-r--r--src/main/java/frc/robot/Constants.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java
index efff2b8..f6b7a4b 100644
--- a/src/main/java/frc/robot/Constants.java
+++ b/src/main/java/frc/robot/Constants.java
@@ -1,12 +1,7 @@
package frc.robot;
-import com.revrobotics.CANSparkMax;
-import com.revrobotics.CANSparkLowLevel.MotorType;
-
-import edu.wpi.first.math.controller.SimpleMotorFeedforward;
import edu.wpi.first.math.trajectory.TrapezoidProfile;
import edu.wpi.first.math.util.Units;
-import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.I2C;
import edu.wpi.first.wpilibj.I2C.Port;
@@ -14,8 +9,8 @@ import frc.robot.util.IMUGyro;
public class Constants
{
- public static final GenericHID controller = new GenericHID(0);
- public static final GenericHID controller2 = new GenericHID(1);
+ public static final GenericHID controller1 = new GenericHID(1);
+ public static final GenericHID controller2 = new GenericHID(0);
public static final double InputSmoothing = 0.1;
@@ -35,21 +30,23 @@ public class Constants
public static final TrapezoidProfile.Constraints motor_constraints =
new TrapezoidProfile.Constraints(DriveMaxSpeed, DriveMaxAcceleration);
- public static final SimpleMotorFeedforward motor_feedforward = new SimpleMotorFeedforward(0.54082, 2.4705);
- public static final CANSparkMax motorL_leader = new CANSparkMax(11, MotorType.kBrushed);
- public static final CANSparkMax motorL_follower = new CANSparkMax(12, MotorType.kBrushed);
- public static final CANSparkMax motorR_leader = new CANSparkMax(13, MotorType.kBrushed);
- public static final CANSparkMax motorR_follower = new CANSparkMax(14, MotorType.kBrushed);
+ public static final double MotorkS = 0.54082;
+ public static final double MotorkV = 2.4705;
+
+ public static final int motorL_leader_ID = 11;
+ public static final int motorL_follower_ID = 12;
+ public static final int motorR_leader_ID = 13;
+ public static final int motorR_follower_ID = 14;
- public static final Encoder encoderL = new Encoder(6, 7);
- public static final Encoder encoderR = new Encoder(4, 5);
+ public static final int[] encoderL_PINS = {6, 7};
+ public static final int[] encoderR_PINS = {4, 5};
// for Intake
public static final int intakeT_ID = 32;
public static final int intakeD_ID = 31;
- // for Shooter CommandScheduler.getInstance().run();
+ // for Shooter
public static final int shooterT_ID = 21;
public static final int shooterD_ID = 22;
@@ -92,4 +89,7 @@ public class Constants
// Hooks
public static final int hookL_ID = 62;
public static final int hookR_ID = 61;
+
+ public static final int[] hookL_PINS = {0, 0};
+ public static final int[] hookR_PINS = {0, 0};
}