Class OmniDriveCoefficients.CoefficientSet

java.lang.Object
com.pocolifo.robobase.motor.OmniDriveCoefficients.CoefficientSet
Enclosing class:
OmniDriveCoefficients

public static class OmniDriveCoefficients.CoefficientSet extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
    Coefficient for the back left motor.
    final double
    Coefficient for the back right motor.
    final double
    Coefficient for the front left motor.
    final double
    Coefficient for the front right motor.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CoefficientSet(double[] coefficients)
    Coefficients for each respective motor.
    CoefficientSet(double frontLeft, double frontRight, double backLeft, double backRight)
    Coefficients for each respective motor.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • frontLeft

      public final double frontLeft
      Coefficient for the front left motor.
    • frontRight

      public final double frontRight
      Coefficient for the front right motor.
    • backLeft

      public final double backLeft
      Coefficient for the back left motor.
    • backRight

      public final double backRight
      Coefficient for the back right motor.
  • Constructor Details

    • CoefficientSet

      public CoefficientSet(double frontLeft, double frontRight, double backLeft, double backRight)
      Coefficients for each respective motor. Allowed value domain: [-1, 1]
      Parameters:
      frontLeft - Coefficient for front left motor.
      frontRight - Coefficient for front right motor.
      backLeft - Coefficient for back left motor.
      backRight - Coefficient for back right motor.
    • CoefficientSet

      public CoefficientSet(double[] coefficients)
      Coefficients for each respective motor.
      Parameters:
      coefficients - Coefficients in order of motors: front left, front right, back left, and back right.