Class MecanumDriveMotorVoltages


  • public class MecanumDriveMotorVoltages
    extends Object
    Represents the motor voltages for a mecanum drive drivetrain.
    • Field Detail

      • frontLeftVoltage

        public double frontLeftVoltage
        Voltage of the front left motor.
      • frontRightVoltage

        public double frontRightVoltage
        Voltage of the front right motor.
      • rearLeftVoltage

        public double rearLeftVoltage
        Voltage of the rear left motor.
      • rearRightVoltage

        public double rearRightVoltage
        Voltage of the rear right motor.
    • Constructor Detail

      • MecanumDriveMotorVoltages

        public MecanumDriveMotorVoltages()
        Constructs a MecanumDriveMotorVoltages with zeros for all member fields.
      • MecanumDriveMotorVoltages

        public MecanumDriveMotorVoltages​(double frontLeftVoltage,
                                         double frontRightVoltage,
                                         double rearLeftVoltage,
                                         double rearRightVoltage)
        Constructs a MecanumDriveMotorVoltages.
        Parameters:
        frontLeftVoltage - Voltage of the front left motor.
        frontRightVoltage - Voltage of the front right motor.
        rearLeftVoltage - Voltage of the rear left motor.
        rearRightVoltage - Voltage of the rear right motor.