Package frc.robot
Record Class SubsystemManager.PathplannerSpeeds
java.lang.Object
java.lang.Record
frc.robot.SubsystemManager.PathplannerSpeeds
- Enclosing class:
- SubsystemManager
public static record SubsystemManager.PathplannerSpeeds(edu.wpi.first.math.kinematics.ChassisSpeeds chassis_speeds, double[] acceleration_feedforwards)
extends Record
Stores a set of chassis speeds and acceleration feedforwards to accept PathPlanner output.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPathplannerSpeeds(edu.wpi.first.math.kinematics.ChassisSpeeds chassis_speeds, double[] acceleration_feedforwards) Creates an instance of aPathplannerSpeedsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]Returns the value of theacceleration_feedforwardsrecord component.edu.wpi.first.math.kinematics.ChassisSpeedsReturns the value of thechassis_speedsrecord 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.
-
Field Details
-
kZero
-
-
Constructor Details
-
PathplannerSpeeds
public PathplannerSpeeds(edu.wpi.first.math.kinematics.ChassisSpeeds chassis_speeds, double[] acceleration_feedforwards) Creates an instance of aPathplannerSpeedsrecord class.- Parameters:
chassis_speeds- the value for thechassis_speedsrecord componentacceleration_feedforwards- the value for theacceleration_feedforwardsrecord 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 withObjects::equals(Object,Object). -
chassis_speeds
public edu.wpi.first.math.kinematics.ChassisSpeeds chassis_speeds()Returns the value of thechassis_speedsrecord component.- Returns:
- the value of the
chassis_speedsrecord component
-
acceleration_feedforwards
public double[] acceleration_feedforwards()Returns the value of theacceleration_feedforwardsrecord component.- Returns:
- the value of the
acceleration_feedforwardsrecord component
-