mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpimath] Fix SimpleFeedforward overload set (#7516)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user