Package xbot.common.controls.actuators
Record Class XCANMotorControllerPIDProperties
java.lang.Object
java.lang.Record
xbot.common.controls.actuators.XCANMotorControllerPIDProperties
public record XCANMotorControllerPIDProperties(double p, double i, double d, double velocityFeedForward, double gravityFeedForward, double maxOutput, double minOutput)
extends Record
-
Constructor Summary
ConstructorDescriptionXCANMotorControllerPIDProperties
(double p, double i, double d) XCANMotorControllerPIDProperties
(double p, double i, double d, double velocityFeedForward, double gravityFeedForward, double maxOutput, double minOutput) Creates an instance of aXCANMotorControllerPIDProperties
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
d()
Returns the value of thed
record component.final boolean
Indicates whether some other object is "equal to" this one.double
Returns the value of thegravityFeedForward
record component.final int
hashCode()
Returns a hash code value for this object.double
i()
Returns the value of thei
record component.double
Returns the value of themaxOutput
record component.double
Returns the value of theminOutput
record component.double
p()
Returns the value of thep
record component.final String
toString()
Returns a string representation of this record class.double
Returns the value of thevelocityFeedForward
record component.
-
Constructor Details
-
XCANMotorControllerPIDProperties
public XCANMotorControllerPIDProperties() -
XCANMotorControllerPIDProperties
public XCANMotorControllerPIDProperties(double p, double i, double d) -
XCANMotorControllerPIDProperties
public XCANMotorControllerPIDProperties(double p, double i, double d, double velocityFeedForward, double gravityFeedForward, double maxOutput, double minOutput) Creates an instance of aXCANMotorControllerPIDProperties
record class.- Parameters:
p
- the value for thep
record componenti
- the value for thei
record componentd
- the value for thed
record componentvelocityFeedForward
- the value for thevelocityFeedForward
record componentgravityFeedForward
- the value for thegravityFeedForward
record componentmaxOutput
- the value for themaxOutput
record componentminOutput
- the value for theminOutput
record 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 '=='. -
p
public double p()Returns the value of thep
record component.- Returns:
- the value of the
p
record component
-
i
public double i()Returns the value of thei
record component.- Returns:
- the value of the
i
record component
-
d
public double d()Returns the value of thed
record component.- Returns:
- the value of the
d
record component
-
velocityFeedForward
public double velocityFeedForward()Returns the value of thevelocityFeedForward
record component.- Returns:
- the value of the
velocityFeedForward
record component
-
gravityFeedForward
public double gravityFeedForward()Returns the value of thegravityFeedForward
record component.- Returns:
- the value of the
gravityFeedForward
record component
-
maxOutput
public double maxOutput()Returns the value of themaxOutput
record component.- Returns:
- the value of the
maxOutput
record component
-
minOutput
public double minOutput()Returns the value of theminOutput
record component.- Returns:
- the value of the
minOutput
record component
-