E=MC / telemetry-master
Embed: (wiki syntax)

« Back to documentation index

TelemetryData Class Reference

TelemetryData Class Reference

Inherited by NumericArray, and NumericData.

Public Member Functions

def get_kvrs_dict
def decode_header
def decode_kvrs
def deserialize_data
def serialize_data

Detailed Description

Abstract base class for telemetry data ID definitions.

Definition at line 154 of file parser.py.


Member Function Documentation

def decode_header (   data_id,
  byte_stream 
)
Decodes a data header from the telemetry stream, automatically detecting and returning
the correct TelemetryData subclass object.

Definition at line 177 of file parser.py.

def decode_kvrs (   self,
  byte_stream 
)
Destructively reads in a sequence of KVRs from the input stream, writing
the known ones as instance variables and throwing exceptions on unknowns.

Definition at line 199 of file parser.py.

def deserialize_data (   self,
  byte_stream 
)
Destructively reads in the data of this type from the input stream.

Definition at line 219 of file parser.py.

def get_kvrs_dict (   self )
Returns a dict of record id => (record name, deserialization function) known by this class.
The record name is used as an instance variable name if the KVR is read in.

Definition at line 164 of file parser.py.

def serialize_data (   self,
  value 
)
Returns the serialized version (as bytes) of this data given a value.
Can raise a ValueError if there is a conversion issue.

Definition at line 224 of file parser.py.