@@ -57,8 +57,8 @@ public class ArmConstants {
57
57
static final double POSITION_OFFSET_FROM_GRAVITY_OFFSET = RobotHardwareStats .isSimulation () ? 0 - Conversions .degreesToRotations (90 ) : 0 + Conversions .degreesToRotations (0 ) - ANGLE_ENCODER_GRAVITY_OFFSET ;
58
58
private static final boolean SHOULD_ARM_FOLLOWER_OPPOSE_MASTER = false ;
59
59
static final double
60
- ARM_DEFAULT_MAXIMUM_VELOCITY = RobotHardwareStats .isSimulation () ? 1.93 : 0 ,
61
- ARM_DEFAULT_MAXIMUM_ACCELERATION = RobotHardwareStats .isSimulation () ? 189 : 0 ,
60
+ ARM_DEFAULT_MAXIMUM_VELOCITY = RobotHardwareStats .isSimulation () ? 2.4614 : 0 ,
61
+ ARM_DEFAULT_MAXIMUM_ACCELERATION = RobotHardwareStats .isSimulation () ? 67.2344 : 0 ,
62
62
ARM_DEFAULT_MAXIMUM_JERK = ARM_DEFAULT_MAXIMUM_ACCELERATION * 10 ;
63
63
static final boolean FOC_ENABLED = true ;
64
64
@@ -95,7 +95,7 @@ public class ArmConstants {
95
95
96
96
static final SysIdRoutine .Config ARM_SYSID_CONFIG = new SysIdRoutine .Config (
97
97
Units .Volts .of (1.5 ).per (Units .Seconds ),
98
- Units .Volts .of (1.5 ),
98
+ Units .Volts .of (3 ),
99
99
Units .Second .of (1000 )
100
100
);
101
101
@@ -120,7 +120,6 @@ public class ArmConstants {
120
120
CommandScheduler .getInstance ().getActiveButtonLoop (),
121
121
DISTANCE_SENSOR ::getBinaryValue
122
122
).debounce (COLLECTION_DETECTION_DEBOUNCE_TIME_SECONDS );
123
- static final Rotation2d FULL_ROTATION = Rotation2d .fromDegrees (360 );
124
123
125
124
static {
126
125
configureArmMasterMotor ();
@@ -143,13 +142,13 @@ private static void configureArmMasterMotor() {
143
142
config .Feedback .FeedbackRemoteSensorID = ARM_MASTER_MOTOR .getID ();
144
143
config .Feedback .FeedbackSensorSource = FeedbackSensorSourceValue .FusedCANcoder ;
145
144
146
- config .Slot0 .kP = RobotHardwareStats .isSimulation () ? 50 : 0 ;
145
+ config .Slot0 .kP = RobotHardwareStats .isSimulation () ? 100 : 0 ;
147
146
config .Slot0 .kI = RobotHardwareStats .isSimulation () ? 0 : 0 ;
148
147
config .Slot0 .kD = RobotHardwareStats .isSimulation () ? 0 : 0 ;
149
- config .Slot0 .kS = RobotHardwareStats .isSimulation () ? 0.0067258 : 0 ;
150
- config .Slot0 .kV = RobotHardwareStats .isSimulation () ? 6.2 : 0 ;
151
- config .Slot0 .kA = RobotHardwareStats .isSimulation () ? 0.063357 : 0 ;
152
- config .Slot0 .kG = RobotHardwareStats .isSimulation () ? 0.15048 : 0 ;
148
+ config .Slot0 .kS = RobotHardwareStats .isSimulation () ? 0.026331 : 0 ;
149
+ config .Slot0 .kV = RobotHardwareStats .isSimulation () ? 4.8752 : 0 ;
150
+ config .Slot0 .kA = RobotHardwareStats .isSimulation () ? 0.17848 : 0 ;
151
+ config .Slot0 .kG = RobotHardwareStats .isSimulation () ? 0.1117 : 0 ;
153
152
154
153
config .Slot0 .GravityType = GravityTypeValue .Arm_Cosine ;
155
154
config .Slot0 .StaticFeedforwardSign = StaticFeedforwardSignValue .UseVelocitySign ;
@@ -236,7 +235,7 @@ public enum ArmState {
236
235
PREPARE_SCORE_L1 (Rotation2d .fromDegrees (80 ), 0 ),
237
236
SCORE_L1 (Rotation2d .fromDegrees (75 ), 4 ),
238
237
PREPARE_SCORE_L2 (Rotation2d .fromDegrees (95 ), 0 ),
239
- SCORE_L2 (Rotation2d .fromDegrees (90 ), 4 ),
238
+ SCORE_L2 (Rotation2d .fromDegrees (180 ), 4 ),
240
239
PREPARE_SCORE_L3 (Rotation2d .fromDegrees (95 ), 0 ),
241
240
SCORE_L3 (Rotation2d .fromDegrees (90 ), 4 ),
242
241
PREPARE_SCORE_L4 (Rotation2d .fromDegrees (95 ), 0 ),
0 commit comments