mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Added falcon feedforward for drive motors
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user