Class MecanumDrive.WheelVelocities
java.lang.Object
org.wpilib.drive.MecanumDrive.WheelVelocities
- Enclosing class:
MecanumDrive
Wheel velocities for a mecanum drive.
Uses normalized voltage [-1.0..1.0].
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleFront-left wheel velocity.doubleFront-right wheel velocity.doubleRear-left wheel velocity.doubleRear-right wheel velocity. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a WheelVelocities with zeroes for all four velocities.WheelVelocities(double frontLeft, double frontRight, double rearLeft, double rearRight) Constructs a WheelVelocities. -
Method Summary
-
Field Details
-
frontLeft
public double frontLeftFront-left wheel velocity. -
frontRight
public double frontRightFront-right wheel velocity. -
rearLeft
public double rearLeftRear-left wheel velocity. -
rearRight
public double rearRightRear-right wheel velocity.
-
-
Constructor Details
-
WheelVelocities
public WheelVelocities()Constructs a WheelVelocities with zeroes for all four velocities. -
WheelVelocities
public WheelVelocities(double frontLeft, double frontRight, double rearLeft, double rearRight) Constructs a WheelVelocities.- Parameters:
frontLeft- The front left velocity [-1.0..1.0].frontRight- The front right velocity [-1.0..1.0].rearLeft- The rear left velocity [-1.0..1.0].rearRight- The rear right velocity [-1.0..1.0].
-