Skip to content

Quick Command Tab #16

@richarthurs

Description

@richarthurs

This tab will have several buttons for commonly used commands.

Commands to add: OBC command - Label

  • wd reset - OBC Hard Reset
  • wd f_reset - OBC Reset and Erase
  • get epoch - Get Epoch
  • Ack - Acknowledge
  1. Add a new tab to the UI using the instructions in the wiki: https://github.com/SFUSatClub/houston/wiki/Adding-a-Tab
  2. To the tab, add some buttons that when pressed, will print something to the terminal (as a quick check that it's working).
  3. Once that works, you can send data out the UART by passing a handle to serial_TxQ to the initialize() function of your tab's class. The serial transmit queue is a Deque, so refer to the Python docs for how to add items to it. Only a string representation of the actual command is needed, so pass 'get epoch' to the queue when the button is pressed.

UARTTab.py has an example of how to use a button.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions