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
Front-left wheel velocity. -
frontRight
Front-right wheel velocity. -
rearLeft
Rear-left wheel velocity. -
rearRight
Rear-right wheel velocity.
-
-
Constructor Details
-
WheelVelocities
public WheelVelocities()Constructs a WheelVelocities with zeroes for all four velocities. -
WheelVelocities
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].
-