Package edu.wpi.first.math.kinematics
Class MecanumDriveMotorVoltages
java.lang.Object
edu.wpi.first.math.kinematics.MecanumDriveMotorVoltages
public class MecanumDriveMotorVoltages extends Object
Represents the motor voltages for a mecanum drive drivetrain.
-
Field Summary
Fields Modifier and Type Field Description double
frontLeftVoltage
Voltage of the front left motor.double
frontRightVoltage
Voltage of the front right motor.double
rearLeftVoltage
Voltage of the rear left motor.double
rearRightVoltage
Voltage 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. -
Method Summary
-
Field Details
-
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.
-
-
Constructor Details
-
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.
-
-
Method Details