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 maxPowerOutput, double minPowerOutput)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionXCANMotorControllerPIDProperties(double p, double i, double d) XCANMotorControllerPIDProperties(double p, double i, double d, double velocityFeedForward, double gravityFeedForward, double maxPowerOutput, double minPowerOutput) Creates an instance of aXCANMotorControllerPIDPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubled()Returns the value of thedrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thegravityFeedForwardrecord component.final inthashCode()Returns a hash code value for this object.doublei()Returns the value of theirecord component.doubleReturns the value of themaxPowerOutputrecord component.doubleReturns the value of theminPowerOutputrecord component.doublep()Returns the value of theprecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thevelocityFeedForwardrecord 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 maxPowerOutput, double minPowerOutput) Creates an instance of aXCANMotorControllerPIDPropertiesrecord class.- Parameters:
p- the value for theprecord componenti- the value for theirecord componentd- the value for thedrecord componentvelocityFeedForward- the value for thevelocityFeedForwardrecord componentgravityFeedForward- the value for thegravityFeedForwardrecord componentmaxPowerOutput- the value for themaxPowerOutputrecord componentminPowerOutput- the value for theminPowerOutputrecord 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 theprecord component.- Returns:
- the value of the
precord component
-
i
public double i()Returns the value of theirecord component.- Returns:
- the value of the
irecord component
-
d
public double d()Returns the value of thedrecord component.- Returns:
- the value of the
drecord component
-
velocityFeedForward
public double velocityFeedForward()Returns the value of thevelocityFeedForwardrecord component.- Returns:
- the value of the
velocityFeedForwardrecord component
-
gravityFeedForward
public double gravityFeedForward()Returns the value of thegravityFeedForwardrecord component.- Returns:
- the value of the
gravityFeedForwardrecord component
-
maxPowerOutput
public double maxPowerOutput()Returns the value of themaxPowerOutputrecord component.- Returns:
- the value of the
maxPowerOutputrecord component
-
minPowerOutput
public double minPowerOutput()Returns the value of theminPowerOutputrecord component.- Returns:
- the value of the
minPowerOutputrecord component
-