Record Class HoodHoming.Inputs
java.lang.Object
java.lang.Record
frc.robot.subsystems.hood.HoodHoming.Inputs
- Record Components:
nowSeconds- the robot clockenabled- the robot is enabledautonomous- the Driver Station is in autonomousteleop- the Driver Station is in teleopmotorConnected- the hood motor's signals are arrivingmotorReset- the hood motor rebooted this loop, restarting its positionpositionDeg- measured hood angle; NaN while a zero has not reached the readings, which starts no re-home on stowdegPerSec- measured hood speedwantsHome- the hood is being sent to its stoptrackingStopped- the hood's tracking stop holds it in neutral
- Enclosing class:
HoodHoming
public static record HoodHoming.Inputs(double nowSeconds, boolean enabled, boolean autonomous, boolean teleop, boolean motorConnected, boolean motorReset, double positionDeg, double degPerSec, boolean wantsHome, boolean trackingStopped)
extends Record
One loop's view of the hood, every field from a logged input.
-
Constructor Summary
ConstructorsConstructorDescriptionInputs(double nowSeconds, boolean enabled, boolean autonomous, boolean teleop, boolean motorConnected, boolean motorReset, double positionDeg, double degPerSec, boolean wantsHome, boolean trackingStopped) Creates an instance of aInputsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theautonomousrecord component.doubleReturns the value of thedegPerSecrecord component.booleanenabled()Returns the value of theenabledrecord 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 themotorConnectedrecord component.booleanReturns the value of themotorResetrecord component.doubleReturns the value of thenowSecondsrecord component.doubleReturns the value of thepositionDegrecord component.booleanteleop()Returns the value of theteleoprecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetrackingStoppedrecord component.booleanReturns the value of thewantsHomerecord component.
-
Constructor Details
-
Inputs
public Inputs(double nowSeconds, boolean enabled, boolean autonomous, boolean teleop, boolean motorConnected, boolean motorReset, double positionDeg, double degPerSec, boolean wantsHome, boolean trackingStopped) Creates an instance of aInputsrecord class.- Parameters:
nowSeconds- the value for thenowSecondsrecord componentenabled- the value for theenabledrecord componentautonomous- the value for theautonomousrecord componentteleop- the value for theteleoprecord componentmotorConnected- the value for themotorConnectedrecord componentmotorReset- the value for themotorResetrecord componentpositionDeg- the value for thepositionDegrecord componentdegPerSec- the value for thedegPerSecrecord componentwantsHome- the value for thewantsHomerecord componenttrackingStopped- the value for thetrackingStoppedrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
nowSeconds
public double nowSeconds()Returns the value of thenowSecondsrecord component.- Returns:
- the value of the
nowSecondsrecord component
-
enabled
-
autonomous
public boolean autonomous()Returns the value of theautonomousrecord component.- Returns:
- the value of the
autonomousrecord component
-
teleop
-
motorConnected
public boolean motorConnected()Returns the value of themotorConnectedrecord component.- Returns:
- the value of the
motorConnectedrecord component
-
motorReset
public boolean motorReset()Returns the value of themotorResetrecord component.- Returns:
- the value of the
motorResetrecord component
-
positionDeg
public double positionDeg()Returns the value of thepositionDegrecord component.- Returns:
- the value of the
positionDegrecord component
-
degPerSec
-
wantsHome
-
trackingStopped
public boolean trackingStopped()Returns the value of thetrackingStoppedrecord component.- Returns:
- the value of the
trackingStoppedrecord component
-