Class WheelForceCalculator.Feedforwards
java.lang.Object
com.ctre.phoenix6.swerve.utility.WheelForceCalculator.Feedforwards
- Enclosing class:
WheelForceCalculator
Wheel force feedforwards to apply to a swerve drivetrain.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFeedforwards(int numModules) Constructs a new set of wheel force feedforwards. -
Method Summary
-
Field Details
-
x_newtons
public final double[] x_newtonsThe X component of the forces in Newtons. -
y_newtons
public final double[] y_newtonsThe Y component of the forces in Newtons.
-
-
Constructor Details
-
Feedforwards
public Feedforwards(int numModules) Constructs a new set of wheel force feedforwards.- Parameters:
numModules- The number of swerve modules
-