Record Class HoodHoming.Inputs

java.lang.Object
java.lang.Record
frc.robot.subsystems.hood.HoodHoming.Inputs
Record Components:
nowSeconds - the robot clock
enabled - the robot is enabled
autonomous - the Driver Station is in autonomous
teleop - the Driver Station is in teleop
motorConnected - the hood motor's signals are arriving
motorReset - the hood motor rebooted this loop, restarting its position
positionDeg - measured hood angle; NaN while a zero has not reached the readings, which starts no re-home on stow
degPerSec - measured hood speed
wantsHome - the hood is being sent to its stop
trackingStopped - 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

    Constructors
    Constructor
    Description
    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 a Inputs record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the autonomous record component.
    double
    Returns the value of the degPerSec record component.
    boolean
    Returns the value of the enabled record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the motorConnected record component.
    boolean
    Returns the value of the motorReset record component.
    double
    Returns the value of the nowSeconds record component.
    double
    Returns the value of the positionDeg record component.
    boolean
    Returns the value of the teleop record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the trackingStopped record component.
    boolean
    Returns the value of the wantsHome record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Inputs record class.
      Parameters:
      nowSeconds - the value for the nowSeconds record component
      enabled - the value for the enabled record component
      autonomous - the value for the autonomous record component
      teleop - the value for the teleop record component
      motorConnected - the value for the motorConnected record component
      motorReset - the value for the motorReset record component
      positionDeg - the value for the positionDeg record component
      degPerSec - the value for the degPerSec record component
      wantsHome - the value for the wantsHome record component
      trackingStopped - the value for the trackingStopped record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • nowSeconds

      public double nowSeconds()
      Returns the value of the nowSeconds record component.
      Returns:
      the value of the nowSeconds record component
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • autonomous

      public boolean autonomous()
      Returns the value of the autonomous record component.
      Returns:
      the value of the autonomous record component
    • teleop

      public boolean teleop()
      Returns the value of the teleop record component.
      Returns:
      the value of the teleop record component
    • motorConnected

      public boolean motorConnected()
      Returns the value of the motorConnected record component.
      Returns:
      the value of the motorConnected record component
    • motorReset

      public boolean motorReset()
      Returns the value of the motorReset record component.
      Returns:
      the value of the motorReset record component
    • positionDeg

      public double positionDeg()
      Returns the value of the positionDeg record component.
      Returns:
      the value of the positionDeg record component
    • degPerSec

      public double degPerSec()
      Returns the value of the degPerSec record component.
      Returns:
      the value of the degPerSec record component
    • wantsHome

      public boolean wantsHome()
      Returns the value of the wantsHome record component.
      Returns:
      the value of the wantsHome record component
    • trackingStopped

      public boolean trackingStopped()
      Returns the value of the trackingStopped record component.
      Returns:
      the value of the trackingStopped record component