pub enum TelemetryDefinition {
Parameters(TelemetryParameters),
Units(TelemetryParameters),
Equations([Option<(f64, f64, f64)>; 5]),
Bits {
bits: String,
title: String,
},
}Expand description
Telemetry parameter definitions sent as APRS messages.
Per APRS 1.0.1 §13.2, a station that emits telemetry frames can send
four additional parameter-definition messages to tell receivers how
to interpret the analog and digital channels. These messages use the
standard APRS message format (:ADDRESSEE:PARM.…) with a well-known
keyword prefix.
Variants§
Parameters(TelemetryParameters)
PARM.P1,P2,P3,P4,P5,B1,B2,B3,B4,B5,B6,B7,B8 — human-readable
names for 5 analog + 8 digital channels.
Units(TelemetryParameters)
UNIT.U1,U2,U3,U4,U5,B1,B2,B3,B4,B5,B6,B7,B8 — unit labels.
Equations([Option<(f64, f64, f64)>; 5])
EQNS.a1,b1,c1,a2,b2,c2,... — calibration coefficients for the
5 analog channels (y = a*x² + b*x + c, 15 values total).
Bits
BITS.b1b2b3b4b5b6b7b8,project_title — active-bit mask plus
project title.
Implementations§
Source§impl TelemetryDefinition
impl TelemetryDefinition
Sourcepub fn from_text(text: &str) -> Option<Self>
pub fn from_text(text: &str) -> Option<Self>
Try to parse a telemetry parameter-definition message from the
text portion of an AprsMessage (everything after the second
: in the wire frame).
Returns None when the text doesn’t start with a known keyword.
Trait Implementations§
Source§impl Clone for TelemetryDefinition
impl Clone for TelemetryDefinition
Source§fn clone(&self) -> TelemetryDefinition
fn clone(&self) -> TelemetryDefinition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more