Package edu.wpi.first.wpilibj.drive
Class DifferentialDrive.WheelSpeeds
java.lang.Object
edu.wpi.first.wpilibj.drive.DifferentialDrive.WheelSpeeds
- Enclosing class:
- DifferentialDrive
public static class DifferentialDrive.WheelSpeeds extends Object
Wheel speeds for a differential drive.
Uses normalized voltage [-1.0..1.0].
-
Field Summary
-
Constructor Summary
Constructors Constructor Description WheelSpeeds()
Constructs a WheelSpeeds with zeroes for left and right speeds.WheelSpeeds(double left, double right)
Constructs a WheelSpeeds. -
Method Summary
-
Field Details
-
Constructor Details
-
WheelSpeeds
public WheelSpeeds()Constructs a WheelSpeeds with zeroes for left and right speeds. -
WheelSpeeds
Constructs a WheelSpeeds.- Parameters:
left
- The left speed [-1.0..1.0].right
- The right speed [-1.0..1.0].
-