Package edu.wpi.first.wpilibj.kinematics
Class MecanumDriveMotorVoltages
- java.lang.Object
-
- edu.wpi.first.wpilibj.kinematics.MecanumDriveMotorVoltages
-
public class MecanumDriveMotorVoltages extends Object
Represents the motor voltages for a mecanum drive drivetrain.
-
-
Field Summary
Fields Modifier and Type Field Description doublefrontLeftVoltageVoltage of the front left motor.doublefrontRightVoltageVoltage of the front right motor.doublerearLeftVoltageVoltage of the rear left motor.doublerearRightVoltageVoltage of the rear right motor.
-
Constructor Summary
Constructors Constructor Description MecanumDriveMotorVoltages()Constructs a MecanumDriveMotorVoltages with zeros for all member fields.MecanumDriveMotorVoltages(double frontLeftVoltage, double frontRightVoltage, double rearLeftVoltage, double rearRightVoltage)Constructs a MecanumDriveMotorVoltages.
-
-
-
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.
-
-