Class PhotonPipelineMetadata

java.lang.Object
org.photonvision.targeting.PhotonPipelineMetadata
All Implemented Interfaces:
PhotonStructSerializable<PhotonPipelineMetadata>

public class PhotonPipelineMetadata extends Object implements PhotonStructSerializable<PhotonPipelineMetadata>
  • Field Details

    • captureTimestampMicros

      public long captureTimestampMicros
    • publishTimestampMicros

      public long publishTimestampMicros
    • sequenceID

      public long sequenceID
    • timeSinceLastPong

      public long timeSinceLastPong
    • photonStruct

      public static final PhotonPipelineMetadataSerde photonStruct
  • Constructor Details

    • PhotonPipelineMetadata

      public PhotonPipelineMetadata(long captureTimestampMicros, long publishTimestampMicros, long sequenceID, long timeSinceLastPong)
    • PhotonPipelineMetadata

      public PhotonPipelineMetadata()
  • Method Details

    • getLatencyMillis

      public double getLatencyMillis()
      Returns the time between image capture and publish to NT
    • getCaptureTimestampMicros

      public long getCaptureTimestampMicros()
      The time that this image was captured, in the coprocessor's time base.
    • getPublishTimestampMicros

      public long getPublishTimestampMicros()
      The time that this result was published to NT, in the coprocessor's time base.
    • getSequenceID

      public long getSequenceID()
      The number of non-empty frames processed by this camera since boot. Useful to checking if a camera is alive.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getSerde

      public PacketSerde<PhotonPipelineMetadata> getSerde()
      Specified by:
      getSerde in interface PhotonStructSerializable<PhotonPipelineMetadata>