Skip to content

Commit f17aa44

Browse files
fix(elevator): fixed motion magic pingu in simple configs
1 parent fdc8d27 commit f17aa44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/frc/robot/subsystems/Elevator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import com.ctre.phoenix6.controls.VoltageOut
1010
import com.ctre.phoenix6.hardware.TalonFX
1111
import com.ctre.phoenix6.signals.InvertedValue
1212
import edu.wpi.first.wpilibj2.command.SubsystemBase
13+
import frc.robot.utils.ElevatorParameters.ELEVATOR_MAGIC_PINGU
1314
import frc.robot.utils.ElevatorParameters.ELEVATOR_PINGU
1415
import frc.robot.utils.ElevatorParameters.ELEVATOR_SOFT_LIMIT_DOWN
1516
import frc.robot.utils.ElevatorParameters.ELEVATOR_SOFT_LIMIT_UP
16-
import frc.robot.utils.PivotParameters.PIVOT_MAGIC_PINGU
1717
import frc.robot.utils.emu.ElevatorState
1818
import xyz.malefic.frc.extension.configureWithDefaults
1919
import xyz.malefic.frc.pingu.AlertPingu.add
@@ -35,7 +35,7 @@ object Elevator : SubsystemBase() {
3535
InvertedValue.CounterClockwise_Positive,
3636
limitThresholds = ELEVATOR_SOFT_LIMIT_UP to ELEVATOR_SOFT_LIMIT_DOWN,
3737
dutyCycleNeutralDeadband = 0.1,
38-
motionMagicPingu = PIVOT_MAGIC_PINGU,
38+
motionMagicPingu = ELEVATOR_MAGIC_PINGU,
3939
)
4040
velocityRequest = VelocityTorqueCurrentFOC(0.0)
4141
posRequest = PositionDutyCycle(0.0)

0 commit comments

Comments
 (0)