Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick Command Tab #16

Open
richarthurs opened this issue Jul 7, 2018 · 0 comments
Open

Quick Command Tab #16

richarthurs opened this issue Jul 7, 2018 · 0 comments
Assignees

Comments

@richarthurs
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants