Class OmniDriveCoefficients

java.lang.Object
com.pocolifo.robobase.motor.OmniDriveCoefficients

public class OmniDriveCoefficients extends Object
  • Field Details

  • Constructor Details

    • OmniDriveCoefficients

      public OmniDriveCoefficients(double[] configuredCoefficients)
      Omni driving coefficients are used...
      • if hardware sets motors up backward
      • to adjust motor power
      • to correct drift and/or uneven motor power
      • to allow for omni driving
      Parameters:
      configuredCoefficients - Coefficients applied after the vertical, horizontal, or rotational coefficients are applied.
  • Method Details

    • calculateCoefficientsWithPower

      public OmniDriveCoefficients.CoefficientSet calculateCoefficientsWithPower(double verticalPower, double horizontalPower, double rotationalPower)
      Calculates the motor coefficients that are then passed to the motors.
      Parameters:
      horizontalPower - -1 is left full speed, 1 is right full speed.
      verticalPower - -1 is backward full speed, 1 is forward full speed.
      rotationalPower - -1 is counterclockwise full speed, 1 is clockwise full speed.
      Returns:
      The coefficients that have been multiplied by the motor powers.
    • calculatePowerWithCoefficients

      public org.apache.commons.math3.geometry.euclidean.threed.Vector3D calculatePowerWithCoefficients(OmniDriveCoefficients.CoefficientSet coefficientSet)