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 Details

    • left

      public double left
      Left wheel speed.
    • right

      public double right
      Right wheel speed.
  • Constructor Details

    • WheelSpeeds

      public WheelSpeeds()
      Constructs a WheelSpeeds with zeroes for left and right speeds.
    • WheelSpeeds

      public WheelSpeeds​(double left, double right)
      Constructs a WheelSpeeds.
      Parameters:
      left - The left speed [-1.0..1.0].
      right - The right speed [-1.0..1.0].