TJREVERB / pfs

Flight software for TJREVERB's nanosat.
7 stars 5 forks source link

Telemetry rewrite #28

Closed etnguyen03 closed 4 years ago

etnguyen03 commented 5 years ago

Rewrite telemetry

Issue #7

Description

Rewrite telemetry to meet the specification as stated in the above issue, and implement Jason's error and logging classes. Meet the command specification as stated in command_ingest's README.

Steps to Reproduce

  1. Calls made to telemetry.enqueue() should enqueue the message (error, log, command) to general_queue.
  2. The thread decide() should remove messages to general_queue as they come in and, depending on the format (error, log, command) send them to the error stack, log stack, or command_ingest respectively.
  3. When dump() is called, subpackets from the error stack and the log stack (in that order) should be popped off their stacks, converted to their string representations, and concatenated until a maximum size is set (defined in config). This is then encoded to base64 and sent through the APRS (radio_output).
  4. When clear_buffers is called, the two stacks and the general queue should be cleared.

Affected Areas

etnguyen03 commented 4 years ago

Redid parts of telemetry, fixed several bugs I identified: