Class CurrentTelemetry

java.lang.Object
org.ka2ddo.yaac.telemetry.CurrentTelemetry
All Implemented Interfaces:
Serializable

public class CurrentTelemetry extends Object implements Serializable
Data structure containing the current telemetry state for a particular station, accumulating the data from TelemetryMessages, and MessageMessages providing the units, labels, and scaling equation coefficients for the station's telemetry.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float[]
    Raw (non-rescaled) analog values from telemetry message.
    final boolean[]
    Raw binary bits from telemetry message.
    static final String[]
    Default field names for telemetry messages per the APRS Protocol Specification.
    float[]
    Quadratic equation coefficients from EQNS message.
    Field names from PARM message (initialized to APRS defaults until the message overwrites it).
    Callsign-SSID of station sending telemetry.
    Telemetry project name from BITS message.
    boolean[]
    Boolean flag polarity bits from BITS message.
    int
    Sequence number from telemetry message.
    long
    Time in Java milliseconds since 1 Jan 1970 UTC when BITS message was last received.
    long
    Time in Java milliseconds since 1 Jan 1970 UTC when EQNS message was last received.
    long
    Time in Java milliseconds since 1 Jan 1970 UTC when PARM message was last received.
    long
    Time in Java milliseconds since 1 Jan 1970 UTC when telemetry message was last received.
    long
    Time in Java milliseconds since 1 Jan 1970 UTC when UNIT message was last received.
    Unit names from UNIT message.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for CurrentTelemetry object.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Extract data from an APRS text message containing telemetry documentation for this station.
    boolean
    Extract data from a TelemetryMessage for this station.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • identifier

      public String identifier
      Callsign-SSID of station sending telemetry.
    • timestampTelemetry

      public long timestampTelemetry
      Time in Java milliseconds since 1 Jan 1970 UTC when telemetry message was last received.
    • timestampEqns

      public long timestampEqns
      Time in Java milliseconds since 1 Jan 1970 UTC when EQNS message was last received.
    • timestampParm

      public long timestampParm
      Time in Java milliseconds since 1 Jan 1970 UTC when PARM message was last received.
    • timestampUnits

      public long timestampUnits
      Time in Java milliseconds since 1 Jan 1970 UTC when UNIT message was last received.
    • timestampBits

      public long timestampBits
      Time in Java milliseconds since 1 Jan 1970 UTC when BITS message was last received.
    • sequenceNum

      public int sequenceNum
      Sequence number from telemetry message.
    • eqnCoeffs

      public float[] eqnCoeffs
      Quadratic equation coefficients from EQNS message.
    • DEFAULT_FIELD_NAMES

      public static final String[] DEFAULT_FIELD_NAMES
      Default field names for telemetry messages per the APRS Protocol Specification.
    • fieldNames

      public String[] fieldNames
      Field names from PARM message (initialized to APRS defaults until the message overwrites it).
    • unitNames

      public String[] unitNames
      Unit names from UNIT message.
    • senseFlags

      public boolean[] senseFlags
      Boolean flag polarity bits from BITS message.
    • analogValues

      public float[] analogValues
      Raw (non-rescaled) analog values from telemetry message.
    • binaryValues

      public final boolean[] binaryValues
      Raw binary bits from telemetry message.
    • projectName

      public String projectName
      Telemetry project name from BITS message.
  • Constructor Details

    • CurrentTelemetry

      public CurrentTelemetry(String identifier)
      Constructor for CurrentTelemetry object.
      Parameters:
      identifier - String callsign of the station sending telemetry
  • Method Details

    • parse

      public boolean parse(TelemetryMessage tm)
      Extract data from a TelemetryMessage for this station.
      Parameters:
      tm - TelemetryMessage to parse
      Returns:
      boolean true if parsing was successful
    • parse

      public boolean parse(MessageMessage mm)
      Extract data from an APRS text message containing telemetry documentation for this station.
      Parameters:
      mm - MessageMessage containing telemetry supplemental data
      Returns:
      boolean true if parsing was successful