Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Link to functions in IMACS repository (encode-decode-bytes branch)

encode.py (encoding function)

  • receives a message – of type string – as a parameter and encodes it into space-separated hexadecimal values.

  • the encoded value is joined with other relevant information (temporarily hardcoded) included from the Array of Bytes documentation found in Ground-Side-Telemetry

decode.py (decoding function)

  • recevies and paritions and an encoded message – passed as string – and a integer base (defaulted at 16)

  • relevant information (e.g message length, frame type, etc.) are extracted, decoded, and stored in a dictionary res to be returned at the end of the function