Class SwerveModuleAcceleration

java.lang.Object
org.wpilib.math.kinematics.SwerveModuleAcceleration
All Implemented Interfaces:
Comparable<SwerveModuleAcceleration>, Interpolatable<SwerveModuleAcceleration>, ProtobufSerializable, StructSerializable, WPISerializable

Represents the accelerations of one swerve module.
  • Field Details

    • acceleration

      public double acceleration
      Acceleration of the wheel of the module in meters per second squared.
    • angle

      public Rotation2d angle
      Angle of the acceleration vector.
    • proto

      public static final SwerveModuleAccelerationProto proto
      SwerveModuleAccelerations protobuf for serialization.
    • struct

      public static final SwerveModuleAccelerationStruct struct
      SwerveModuleAccelerations struct for serialization.
  • Constructor Details

    • SwerveModuleAcceleration

      public SwerveModuleAcceleration()
      Constructs a SwerveModuleAccelerations with zeros for acceleration and angle.
    • SwerveModuleAcceleration

      public SwerveModuleAcceleration(double acceleration, Rotation2d angle)
      Constructs a SwerveModuleAccelerations.
      Parameters:
      acceleration - The acceleration of the wheel of the module in meters per second squared.
      angle - The angle of the acceleration vector.
    • SwerveModuleAcceleration

      public SwerveModuleAcceleration(LinearAcceleration acceleration, Rotation2d angle)
      Constructs a SwerveModuleAccelerations.
      Parameters:
      acceleration - The acceleration of the wheel of the module.
      angle - The angle of the acceleration vector.
  • Method Details