Added falcon feedforward for drive motors

This commit is contained in:
thenetworkgrinch
2024-01-16 16:49:05 -06:00
parent c339d2f482
commit 0d790c3cdd

View File

@@ -323,7 +323,7 @@ public class TalonFXSwerve extends SwerveMotor
if (isDriveMotor)
{
motor.setControl(m_velocityVoltageSetter.withVelocity(setpoint));
motor.setControl(m_velocityVoltageSetter.withVelocity(setpoint).withFeedForward(feedforward));
} else
{
motor.setControl(m_angleVoltageSetter.withPosition(setpoint));