Record Class HoodHoming.Output
java.lang.Object
java.lang.Record
frc.robot.subsystems.hood.HoodHoming.Output
- Record Components:
action- what the hood motor doesresetPosition- set the motor's position toHoodHoming.Params.stopDegthis loopzeroed- the hood's angle can be trustedstate- logged statetimedOut- the last attempt timed out (drives the alert)
- Enclosing class:
HoodHoming
public static record HoodHoming.Output(HoodHoming.Action action, boolean resetPosition, boolean zeroed, HoodHoming.State state, boolean timedOut)
extends Record
The homing answer for one loop.
-
Constructor Summary
ConstructorsConstructorDescriptionOutput(HoodHoming.Action action, boolean resetPosition, boolean zeroed, HoodHoming.State state, boolean timedOut) Creates an instance of aOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theresetPositionrecord component.state()Returns the value of thestaterecord component.booleantimedOut()Returns the value of thetimedOutrecord component.final StringtoString()Returns a string representation of this record class.booleanzeroed()Returns the value of thezeroedrecord component.
-
Constructor Details
-
Output
public Output(HoodHoming.Action action, boolean resetPosition, boolean zeroed, HoodHoming.State state, boolean timedOut) Creates an instance of aOutputrecord class.- Parameters:
action- the value for theactionrecord componentresetPosition- the value for theresetPositionrecord componentzeroed- the value for thezeroedrecord componentstate- the value for thestaterecord componenttimedOut- the value for thetimedOutrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
action
-
resetPosition
public boolean resetPosition()Returns the value of theresetPositionrecord component.- Returns:
- the value of the
resetPositionrecord component
-
zeroed
-
state
-
timedOut
-