Record Class ManualTeleopController.DriverProfiles
java.lang.Object
java.lang.Record
frc.robot.systems.drive.controllers.ManualTeleopController.DriverProfiles
- Enclosing class:
- ManualTeleopController
-
Constructor Summary
ConstructorsConstructorDescriptionDriverProfiles(double linearScalar, double linearExponent, double linearDeadband, double rotationalScalar, double rotationalExponent, double rotationDeadband, double sniperScalar, boolean swapSides, String key) Creates an instance of aDriverProfilesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.doubleReturns the value of thelinearDeadbandrecord component.doubleReturns the value of thelinearExponentrecord component.doubleReturns the value of thelinearScalarrecord component.doubleReturns the value of therotationalExponentrecord component.doubleReturns the value of therotationalScalarrecord component.doubleReturns the value of therotationDeadbandrecord component.doubleReturns the value of thesniperScalarrecord component.booleanReturns the value of theswapSidesrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aDriverProfilesrecord class.- Parameters:
linearScalar- the value for thelinearScalarrecord componentlinearExponent- the value for thelinearExponentrecord componentlinearDeadband- the value for thelinearDeadbandrecord componentrotationalScalar- the value for therotationalScalarrecord componentrotationalExponent- the value for therotationalExponentrecord componentrotationDeadband- the value for therotationDeadbandrecord componentsniperScalar- the value for thesniperScalarrecord componentswapSides- the value for theswapSidesrecord componentkey- the value for thekeyrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
linearScalar
public double linearScalar()Returns the value of thelinearScalarrecord component.- Returns:
- the value of the
linearScalarrecord component
-
linearExponent
public double linearExponent()Returns the value of thelinearExponentrecord component.- Returns:
- the value of the
linearExponentrecord component
-
linearDeadband
public double linearDeadband()Returns the value of thelinearDeadbandrecord component.- Returns:
- the value of the
linearDeadbandrecord component
-
rotationalScalar
public double rotationalScalar()Returns the value of therotationalScalarrecord component.- Returns:
- the value of the
rotationalScalarrecord component
-
rotationalExponent
public double rotationalExponent()Returns the value of therotationalExponentrecord component.- Returns:
- the value of the
rotationalExponentrecord component
-
rotationDeadband
public double rotationDeadband()Returns the value of therotationDeadbandrecord component.- Returns:
- the value of the
rotationDeadbandrecord component
-
sniperScalar
public double sniperScalar()Returns the value of thesniperScalarrecord component.- Returns:
- the value of the
sniperScalarrecord component
-
swapSides
public boolean swapSides()Returns the value of theswapSidesrecord component.- Returns:
- the value of the
swapSidesrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-