File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/org/carlmontrobotics Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ public static final class Armc {
120120 public static final boolean ENCODER_INVERTED = true ;
121121
122122 // difference between CoG and arm is .328 rad
123- public static final double ENCODER_OFFSET_RAD = -0.08 + .328 ; // - 0.6095;
123+ public static final double ENCODER_OFFSET_RAD = 6.132 ;
124+ // 0.08 + .328 - 0.404; // - 0.6095;
124125
125126 // TODO: finish understand why this is broken public static final Measure<Angle>
126127 // INTAKE_ANGLE = Degrees.to(-1);
Original file line number Diff line number Diff line change @@ -396,12 +396,12 @@ public Command sysIdDynamic(SysIdRoutine.Direction direction) {
396396 // #region Getters
397397
398398 public double getArmPos () {
399+
399400 return MathUtil .inputModulus (armMasterEncoder .getPosition (),
400401 ARM_DISCONT_RAD , ARM_DISCONT_RAD + 2 * Math .PI );// armMasterEncoder.getPosition();//MathUtil.inputModulus(armMasterEncoder.getPosition(),
401402 // ARM_DISCONT_RAD,
402403 // ARM_DISCONT_RAD + 2 * Math.PI);
403404 }
404-
405405 public double getArmVel () {
406406 return armMasterEncoder .getVelocity ();
407407 }
You can’t perform that action at this time.
0 commit comments