[wpimath] Fix SimpleFeedforward overload set (#7516)

This commit is contained in:
Tyler Veness
2024-12-07 20:32:16 -08:00
committed by GitHub
parent 6dbff902fa
commit c497e4ec22
8 changed files with 17 additions and 53 deletions

View File

@@ -96,12 +96,12 @@ public class DriveSubsystem extends SubsystemBase {
m_leftLeader.setSetpoint(
ExampleSmartMotorController.PIDMode.kPosition,
currentLeft.position,
m_feedforward.calculateWithVelocities(currentLeft.velocity, nextLeft.velocity)
m_feedforward.calculate(currentLeft.velocity, nextLeft.velocity)
/ RobotController.getBatteryVoltage());
m_rightLeader.setSetpoint(
ExampleSmartMotorController.PIDMode.kPosition,
currentRight.position,
m_feedforward.calculateWithVelocities(currentLeft.velocity, nextLeft.velocity)
m_feedforward.calculate(currentLeft.velocity, nextLeft.velocity)
/ RobotController.getBatteryVoltage());
}