Package com.pocolifo.robobase.motor
Class OmniDriveCoefficients.CoefficientSet
java.lang.Object
com.pocolifo.robobase.motor.OmniDriveCoefficients.CoefficientSet
- Enclosing class:
- OmniDriveCoefficients
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleCoefficient for the back left motor.final doubleCoefficient for the back right motor.final doubleCoefficient for the front left motor.final doubleCoefficient for the front right motor. -
Constructor Summary
ConstructorsConstructorDescriptionCoefficientSet(double[] coefficients) Coefficients for each respective motor.CoefficientSet(double frontLeft, double frontRight, double backLeft, double backRight) Coefficients for each respective motor. -
Method Summary
-
Field Details
-
frontLeft
public final double frontLeftCoefficient for the front left motor. -
frontRight
public final double frontRightCoefficient for the front right motor. -
backLeft
public final double backLeftCoefficient for the back left motor. -
backRight
public final double backRightCoefficient 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.
-