Package org.ka2ddo.yaac.telemetry
Class CurrentTelemetry
java.lang.Object
org.ka2ddo.yaac.telemetry.CurrentTelemetry
- All Implemented Interfaces:
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
Modifier and TypeFieldDescriptionfloat[]
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.String[]
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.String[]
Unit names from UNIT message. -
Constructor Summary
ConstructorDescriptionCurrentTelemetry
(String identifier) Constructor for CurrentTelemetry object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
parse
(MessageMessage mm) Extract data from an APRS text message containing telemetry documentation for this station.boolean
Extract data from a TelemetryMessage for this station.
-
Field Details
-
identifier
Callsign-SSID of station sending telemetry. -
timestampTelemetry
public long timestampTelemetryTime in Java milliseconds since 1 Jan 1970 UTC when telemetry message was last received. -
timestampEqns
public long timestampEqnsTime in Java milliseconds since 1 Jan 1970 UTC when EQNS message was last received. -
timestampParm
public long timestampParmTime in Java milliseconds since 1 Jan 1970 UTC when PARM message was last received. -
timestampUnits
public long timestampUnitsTime in Java milliseconds since 1 Jan 1970 UTC when UNIT message was last received. -
timestampBits
public long timestampBitsTime in Java milliseconds since 1 Jan 1970 UTC when BITS message was last received. -
sequenceNum
public int sequenceNumSequence number from telemetry message. -
eqnCoeffs
public float[] eqnCoeffsQuadratic equation coefficients from EQNS message. -
DEFAULT_FIELD_NAMES
Default field names for telemetry messages per the APRS Protocol Specification. -
fieldNames
Field names from PARM message (initialized to APRS defaults until the message overwrites it). -
unitNames
Unit names from UNIT message. -
senseFlags
public boolean[] senseFlagsBoolean flag polarity bits from BITS message. -
analogValues
public float[] analogValuesRaw (non-rescaled) analog values from telemetry message. -
binaryValues
public final boolean[] binaryValuesRaw binary bits from telemetry message. -
projectName
Telemetry project name from BITS message.
-
-
Constructor Details
-
CurrentTelemetry
Constructor for CurrentTelemetry object.- Parameters:
identifier
- String callsign of the station sending telemetry
-
-
Method Details
-
parse
Extract data from a TelemetryMessage for this station.- Parameters:
tm
- TelemetryMessage to parse- Returns:
- boolean true if parsing was successful
-
parse
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
-