Record Class ManualTeleopController.DriverProfiles

java.lang.Object
java.lang.Record
frc.robot.systems.drive.controllers.ManualTeleopController.DriverProfiles
Enclosing class:
ManualTeleopController

public static record ManualTeleopController.DriverProfiles(double linearScalar, double linearExponent, double linearDeadband, double rotationalScalar, double rotationalExponent, double rotationDeadband, double sniperScalar, boolean swapSides, String key) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    DriverProfiles(double linearScalar, double linearExponent, double linearDeadband, double rotationalScalar, double rotationalExponent, double rotationDeadband, double sniperScalar, boolean swapSides, String key)
    Creates an instance of a DriverProfiles record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    key()
    Returns the value of the key record component.
    double
    Returns the value of the linearDeadband record component.
    double
    Returns the value of the linearExponent record component.
    double
    Returns the value of the linearScalar record component.
    double
    Returns the value of the rotationalExponent record component.
    double
    Returns the value of the rotationalScalar record component.
    double
    Returns the value of the rotationDeadband record component.
    double
    Returns the value of the sniperScalar record component.
    boolean
    Returns the value of the swapSides record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DriverProfiles

      public DriverProfiles(double linearScalar, double linearExponent, double linearDeadband, double rotationalScalar, double rotationalExponent, double rotationDeadband, double sniperScalar, boolean swapSides, String key)
      Creates an instance of a DriverProfiles record class.
      Parameters:
      linearScalar - the value for the linearScalar record component
      linearExponent - the value for the linearExponent record component
      linearDeadband - the value for the linearDeadband record component
      rotationalScalar - the value for the rotationalScalar record component
      rotationalExponent - the value for the rotationalExponent record component
      rotationDeadband - the value for the rotationDeadband record component
      sniperScalar - the value for the sniperScalar record component
      swapSides - the value for the swapSides record component
      key - the value for the key record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • linearScalar

      public double linearScalar()
      Returns the value of the linearScalar record component.
      Returns:
      the value of the linearScalar record component
    • linearExponent

      public double linearExponent()
      Returns the value of the linearExponent record component.
      Returns:
      the value of the linearExponent record component
    • linearDeadband

      public double linearDeadband()
      Returns the value of the linearDeadband record component.
      Returns:
      the value of the linearDeadband record component
    • rotationalScalar

      public double rotationalScalar()
      Returns the value of the rotationalScalar record component.
      Returns:
      the value of the rotationalScalar record component
    • rotationalExponent

      public double rotationalExponent()
      Returns the value of the rotationalExponent record component.
      Returns:
      the value of the rotationalExponent record component
    • rotationDeadband

      public double rotationDeadband()
      Returns the value of the rotationDeadband record component.
      Returns:
      the value of the rotationDeadband record component
    • sniperScalar

      public double sniperScalar()
      Returns the value of the sniperScalar record component.
      Returns:
      the value of the sniperScalar record component
    • swapSides

      public boolean swapSides()
      Returns the value of the swapSides record component.
      Returns:
      the value of the swapSides record component
    • key

      public String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component