Skip to content

Commit

Permalink
add mechanism ratios
Browse files Browse the repository at this point in the history
  • Loading branch information
woopers6 committed Feb 1, 2025
1 parent ff567b9 commit 09dec1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/subsystems/lift/LiftSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ private LiftSubsystem(Hardware liftHardware) {
elevatorConfig.CurrentLimits.SupplyCurrentLimitEnable = true;
elevatorConfig.CurrentLimits.SupplyCurrentLowerLimit = 40;
elevatorConfig.CurrentLimits.SupplyCurrentLowerTime = 1.0;
elevatorConfig.Feedback.SensorToMechanismRatio = 1.0;
elevatorConfig.Feedback.SensorToMechanismRatio = 5.0;
elevatorConfig.Feedback.RotorToSensorRatio = 1.0;
elevatorConfig.Audio.AllowMusicDurDisable = true;
elevatorConfig.MotionMagic.MotionMagicAcceleration = 0;
Expand Down Expand Up @@ -801,7 +801,7 @@ private LiftSubsystem(Hardware liftHardware) {
pivotConfig.CurrentLimits.SupplyCurrentLowerLimit = 40;
pivotConfig.CurrentLimits.SupplyCurrentLowerTime = 1.0;
pivotConfig.Feedback.SensorToMechanismRatio = 1.0;
pivotConfig.Feedback.RotorToSensorRatio = 1.0;
pivotConfig.Feedback.RotorToSensorRatio = 52.36363636363636;
pivotConfig.Feedback.FeedbackSensorSource = FeedbackSensorSourceValue.FusedCANcoder;
pivotConfig.Audio.AllowMusicDurDisable = true;
pivotConfig.MotionMagic.MotionMagicAcceleration = 0;
Expand Down Expand Up @@ -954,7 +954,7 @@ public SysIdRoutine getElevatorSysIDRoutine() {


/**
*
*
* @return
*/
public SysIdRoutine getPivotSysIDRoutine() {
Expand Down

0 comments on commit 09dec1f

Please sign in to comment.