Record Class SparkLowLevel.PeriodicStatus1

java.lang.Object
java.lang.Record
com.revrobotics.spark.SparkLowLevel.PeriodicStatus1
All Implemented Interfaces:
StatusFrame
Enclosing class:
SparkLowLevel

public static record SparkLowLevel.PeriodicStatus1(boolean otherFault, boolean motorTypeFault, boolean sensorFault, boolean canFault, boolean temperatureFault, boolean drvFault, boolean escEepromFault, boolean firmwareFault, boolean brownoutWarning, boolean overcurrentWarning, boolean escEepromWarning, boolean extEepromWarning, boolean sensorWarning, boolean stallWarning, boolean hasResetWarning, boolean otherWarning, boolean otherStickyFault, boolean motorTypeStickyFault, boolean sensorStickyFault, boolean canStickyFault, boolean temperatureStickyFault, boolean drvStickyFault, boolean escEepromStickyFault, boolean firmwareStickyFault, boolean brownoutStickyWarning, boolean overcurrentStickyWarning, boolean escEepromStickyWarning, boolean extEepromStickyWarning, boolean sensorStickyWarning, boolean stallStickyWarning, boolean hasResetStickyWarning, boolean otherStickyWarning, boolean isFollower, int revlibError, long timestamp) extends Record implements StatusFrame
  • Constructor Summary

    Constructors
    Constructor
    Description
    PeriodicStatus1(boolean otherFault, boolean motorTypeFault, boolean sensorFault, boolean canFault, boolean temperatureFault, boolean drvFault, boolean escEepromFault, boolean firmwareFault, boolean brownoutWarning, boolean overcurrentWarning, boolean escEepromWarning, boolean extEepromWarning, boolean sensorWarning, boolean stallWarning, boolean hasResetWarning, boolean otherWarning, boolean otherStickyFault, boolean motorTypeStickyFault, boolean sensorStickyFault, boolean canStickyFault, boolean temperatureStickyFault, boolean drvStickyFault, boolean escEepromStickyFault, boolean firmwareStickyFault, boolean brownoutStickyWarning, boolean overcurrentStickyWarning, boolean escEepromStickyWarning, boolean extEepromStickyWarning, boolean sensorStickyWarning, boolean stallStickyWarning, boolean hasResetStickyWarning, boolean otherStickyWarning, boolean isFollower, int revlibError, long timestamp)
    Creates an instance of a PeriodicStatus1 record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the brownoutStickyWarning record component.
    boolean
    Returns the value of the brownoutWarning record component.
    boolean
    Returns the value of the canFault record component.
    boolean
    Returns the value of the canStickyFault record component.
    boolean
    Returns the value of the drvFault record component.
    boolean
    Returns the value of the drvStickyFault record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the escEepromFault record component.
    boolean
    Returns the value of the escEepromStickyFault record component.
    boolean
    Returns the value of the escEepromStickyWarning record component.
    boolean
    Returns the value of the escEepromWarning record component.
    boolean
    Returns the value of the extEepromStickyWarning record component.
    boolean
    Returns the value of the extEepromWarning record component.
    boolean
    Returns the value of the firmwareFault record component.
    boolean
    Returns the value of the firmwareStickyFault record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the hasResetStickyWarning record component.
    boolean
    Returns the value of the hasResetWarning record component.
    boolean
    Returns the value of the isFollower record component.
    boolean
    Returns the value of the motorTypeFault record component.
    boolean
    Returns the value of the motorTypeStickyFault record component.
    boolean
    Returns the value of the otherFault record component.
    boolean
    Returns the value of the otherStickyFault record component.
    boolean
    Returns the value of the otherStickyWarning record component.
    boolean
    Returns the value of the otherWarning record component.
    boolean
    Returns the value of the overcurrentStickyWarning record component.
    boolean
    Returns the value of the overcurrentWarning record component.
    int
    Returns the value of the revlibError record component.
    boolean
    Returns the value of the sensorFault record component.
    boolean
    Returns the value of the sensorStickyFault record component.
    boolean
    Returns the value of the sensorStickyWarning record component.
    boolean
    Returns the value of the sensorWarning record component.
    boolean
    Returns the value of the stallStickyWarning record component.
    boolean
    Returns the value of the stallWarning record component.
    boolean
    Returns the value of the temperatureFault record component.
    boolean
    Returns the value of the temperatureStickyFault record component.
    long
    Returns the value of the timestamp record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface StatusFrame

    getRevlibError
  • Constructor Details

    • PeriodicStatus1

      public PeriodicStatus1(boolean otherFault, boolean motorTypeFault, boolean sensorFault, boolean canFault, boolean temperatureFault, boolean drvFault, boolean escEepromFault, boolean firmwareFault, boolean brownoutWarning, boolean overcurrentWarning, boolean escEepromWarning, boolean extEepromWarning, boolean sensorWarning, boolean stallWarning, boolean hasResetWarning, boolean otherWarning, boolean otherStickyFault, boolean motorTypeStickyFault, boolean sensorStickyFault, boolean canStickyFault, boolean temperatureStickyFault, boolean drvStickyFault, boolean escEepromStickyFault, boolean firmwareStickyFault, boolean brownoutStickyWarning, boolean overcurrentStickyWarning, boolean escEepromStickyWarning, boolean extEepromStickyWarning, boolean sensorStickyWarning, boolean stallStickyWarning, boolean hasResetStickyWarning, boolean otherStickyWarning, boolean isFollower, int revlibError, long timestamp)
      Creates an instance of a PeriodicStatus1 record class.
      Parameters:
      otherFault - the value for the otherFault record component
      motorTypeFault - the value for the motorTypeFault record component
      sensorFault - the value for the sensorFault record component
      canFault - the value for the canFault record component
      temperatureFault - the value for the temperatureFault record component
      drvFault - the value for the drvFault record component
      escEepromFault - the value for the escEepromFault record component
      firmwareFault - the value for the firmwareFault record component
      brownoutWarning - the value for the brownoutWarning record component
      overcurrentWarning - the value for the overcurrentWarning record component
      escEepromWarning - the value for the escEepromWarning record component
      extEepromWarning - the value for the extEepromWarning record component
      sensorWarning - the value for the sensorWarning record component
      stallWarning - the value for the stallWarning record component
      hasResetWarning - the value for the hasResetWarning record component
      otherWarning - the value for the otherWarning record component
      otherStickyFault - the value for the otherStickyFault record component
      motorTypeStickyFault - the value for the motorTypeStickyFault record component
      sensorStickyFault - the value for the sensorStickyFault record component
      canStickyFault - the value for the canStickyFault record component
      temperatureStickyFault - the value for the temperatureStickyFault record component
      drvStickyFault - the value for the drvStickyFault record component
      escEepromStickyFault - the value for the escEepromStickyFault record component
      firmwareStickyFault - the value for the firmwareStickyFault record component
      brownoutStickyWarning - the value for the brownoutStickyWarning record component
      overcurrentStickyWarning - the value for the overcurrentStickyWarning record component
      escEepromStickyWarning - the value for the escEepromStickyWarning record component
      extEepromStickyWarning - the value for the extEepromStickyWarning record component
      sensorStickyWarning - the value for the sensorStickyWarning record component
      stallStickyWarning - the value for the stallStickyWarning record component
      hasResetStickyWarning - the value for the hasResetStickyWarning record component
      otherStickyWarning - the value for the otherStickyWarning record component
      isFollower - the value for the isFollower record component
      revlibError - the value for the revlibError record component
      timestamp - the value for the timestamp 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.
    • otherFault

      public boolean otherFault()
      Returns the value of the otherFault record component.
      Returns:
      the value of the otherFault record component
    • motorTypeFault

      public boolean motorTypeFault()
      Returns the value of the motorTypeFault record component.
      Returns:
      the value of the motorTypeFault record component
    • sensorFault

      public boolean sensorFault()
      Returns the value of the sensorFault record component.
      Returns:
      the value of the sensorFault record component
    • canFault

      public boolean canFault()
      Returns the value of the canFault record component.
      Returns:
      the value of the canFault record component
    • temperatureFault

      public boolean temperatureFault()
      Returns the value of the temperatureFault record component.
      Returns:
      the value of the temperatureFault record component
    • drvFault

      public boolean drvFault()
      Returns the value of the drvFault record component.
      Returns:
      the value of the drvFault record component
    • escEepromFault

      public boolean escEepromFault()
      Returns the value of the escEepromFault record component.
      Returns:
      the value of the escEepromFault record component
    • firmwareFault

      public boolean firmwareFault()
      Returns the value of the firmwareFault record component.
      Returns:
      the value of the firmwareFault record component
    • brownoutWarning

      public boolean brownoutWarning()
      Returns the value of the brownoutWarning record component.
      Returns:
      the value of the brownoutWarning record component
    • overcurrentWarning

      public boolean overcurrentWarning()
      Returns the value of the overcurrentWarning record component.
      Returns:
      the value of the overcurrentWarning record component
    • escEepromWarning

      public boolean escEepromWarning()
      Returns the value of the escEepromWarning record component.
      Returns:
      the value of the escEepromWarning record component
    • extEepromWarning

      public boolean extEepromWarning()
      Returns the value of the extEepromWarning record component.
      Returns:
      the value of the extEepromWarning record component
    • sensorWarning

      public boolean sensorWarning()
      Returns the value of the sensorWarning record component.
      Returns:
      the value of the sensorWarning record component
    • stallWarning

      public boolean stallWarning()
      Returns the value of the stallWarning record component.
      Returns:
      the value of the stallWarning record component
    • hasResetWarning

      public boolean hasResetWarning()
      Returns the value of the hasResetWarning record component.
      Returns:
      the value of the hasResetWarning record component
    • otherWarning

      public boolean otherWarning()
      Returns the value of the otherWarning record component.
      Returns:
      the value of the otherWarning record component
    • otherStickyFault

      public boolean otherStickyFault()
      Returns the value of the otherStickyFault record component.
      Returns:
      the value of the otherStickyFault record component
    • motorTypeStickyFault

      public boolean motorTypeStickyFault()
      Returns the value of the motorTypeStickyFault record component.
      Returns:
      the value of the motorTypeStickyFault record component
    • sensorStickyFault

      public boolean sensorStickyFault()
      Returns the value of the sensorStickyFault record component.
      Returns:
      the value of the sensorStickyFault record component
    • canStickyFault

      public boolean canStickyFault()
      Returns the value of the canStickyFault record component.
      Returns:
      the value of the canStickyFault record component
    • temperatureStickyFault

      public boolean temperatureStickyFault()
      Returns the value of the temperatureStickyFault record component.
      Returns:
      the value of the temperatureStickyFault record component
    • drvStickyFault

      public boolean drvStickyFault()
      Returns the value of the drvStickyFault record component.
      Returns:
      the value of the drvStickyFault record component
    • escEepromStickyFault

      public boolean escEepromStickyFault()
      Returns the value of the escEepromStickyFault record component.
      Returns:
      the value of the escEepromStickyFault record component
    • firmwareStickyFault

      public boolean firmwareStickyFault()
      Returns the value of the firmwareStickyFault record component.
      Returns:
      the value of the firmwareStickyFault record component
    • brownoutStickyWarning

      public boolean brownoutStickyWarning()
      Returns the value of the brownoutStickyWarning record component.
      Returns:
      the value of the brownoutStickyWarning record component
    • overcurrentStickyWarning

      public boolean overcurrentStickyWarning()
      Returns the value of the overcurrentStickyWarning record component.
      Returns:
      the value of the overcurrentStickyWarning record component
    • escEepromStickyWarning

      public boolean escEepromStickyWarning()
      Returns the value of the escEepromStickyWarning record component.
      Returns:
      the value of the escEepromStickyWarning record component
    • extEepromStickyWarning

      public boolean extEepromStickyWarning()
      Returns the value of the extEepromStickyWarning record component.
      Returns:
      the value of the extEepromStickyWarning record component
    • sensorStickyWarning

      public boolean sensorStickyWarning()
      Returns the value of the sensorStickyWarning record component.
      Returns:
      the value of the sensorStickyWarning record component
    • stallStickyWarning

      public boolean stallStickyWarning()
      Returns the value of the stallStickyWarning record component.
      Returns:
      the value of the stallStickyWarning record component
    • hasResetStickyWarning

      public boolean hasResetStickyWarning()
      Returns the value of the hasResetStickyWarning record component.
      Returns:
      the value of the hasResetStickyWarning record component
    • otherStickyWarning

      public boolean otherStickyWarning()
      Returns the value of the otherStickyWarning record component.
      Returns:
      the value of the otherStickyWarning record component
    • isFollower

      public boolean isFollower()
      Returns the value of the isFollower record component.
      Returns:
      the value of the isFollower record component
    • revlibError

      public int revlibError()
      Returns the value of the revlibError record component.
      Specified by:
      revlibError in interface StatusFrame
      Returns:
      the value of the revlibError record component
    • timestamp

      public long timestamp()
      Returns the value of the timestamp record component.
      Specified by:
      timestamp in interface StatusFrame
      Returns:
      the value of the timestamp record component