Using PathPlanner DriveFeedforward on SparkMAX or SparkFlex

I just implemented the SwerveSetpointGenerator into YAGSL but had to omit the feedforward entirely because I wasn’t sure how to translate the Newtons or Amperage to Voltage or PercentOut that could be used on a SparkMAX or SparkFlex. Has anyone been able to do this?

1 Like


I think you can use the WPILIB simple motor feedforward.

1 Like

I already am but I want to use Amp control that way i can get even better performance.

1 Like