Package frc.robot
Record Class RobotContainer.JoystickInputs
java.lang.Object
java.lang.Record
frc.robot.RobotContainer.JoystickInputs
- Enclosing class:
- RobotContainer
public static record RobotContainer.JoystickInputs(double drive_x, double drive_y, double drive_a)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionJoystickInputs(double drive_x, double drive_y, double drive_a) Creates an instance of aJoystickInputsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubledrive_a()Returns the value of thedrive_arecord component.doubledrive_x()Returns the value of thedrive_xrecord component.doubledrive_y()Returns the value of thedrive_yrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JoystickInputs
public JoystickInputs(double drive_x, double drive_y, double drive_a) Creates an instance of aJoystickInputsrecord class.- Parameters:
drive_x- the value for thedrive_xrecord componentdrive_y- the value for thedrive_yrecord componentdrive_a- the value for thedrive_arecord 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. All components in this record class are compared with '=='. -
drive_x
public double drive_x()Returns the value of thedrive_xrecord component.- Returns:
- the value of the
drive_xrecord component
-
drive_y
public double drive_y()Returns the value of thedrive_yrecord component.- Returns:
- the value of the
drive_yrecord component
-
drive_a
public double drive_a()Returns the value of thedrive_arecord component.- Returns:
- the value of the
drive_arecord component
-