Class WheelForceCalculator.Feedforwards

java.lang.Object
com.ctre.phoenix6.swerve.utility.WheelForceCalculator.Feedforwards
Enclosing class:
WheelForceCalculator

public static class WheelForceCalculator.Feedforwards extends Object
Wheel force feedforwards to apply to a swerve drivetrain.
  • Field Details

    • x_newtons

      public final double[] x_newtons
      The X component of the forces in Newtons.
    • y_newtons

      public final double[] y_newtons
      The 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