Command Qwidget - AudacySpace/quindar-ux GitHub Wiki
The purpose of this qwidget is to allow operators to enter, lock, and send commands (or view which commands are being sent by someone else). It also displays the command response, and saves command history. This qwidget is synced across all the users accessing Quindar.
The qwidget layout has three views:
- Main View (Default view)
- Delete Menu
- Settings Menu
Main View
On opening the qwidget, this view is displayed.This viewing window has the following main elements
- Send commands form.
- Command History table.
Send Command Form
This form is used to type in and send commands.This form has following main components. This form will be filled in using the commands written in a Quantum procedure.
Component: Command name input box Description: This input box is used to type in commands which can be sent to the satellite.There is a display field below it to display the selected command when lock button is clicked.
Component: Command Arguments input box Description: This input box is used to type in command arguments.There is a display field below it to display the selected command arguments when lock button is clicked.
Component: Enter button Description: This button is clicked when command and command arguments are added.The button color turns to green when pressed.
Component: Lock button Description: This button is used to lock the command to be sent.The button color turns to green when pressed and the value of the button changes to "Unlock".
- Changes cannot be performed to the input command and arguments when locked (the input fields are disabled).
- To make changes, click the Unlock button which enables the input fields.
Component: Gateway field Description: The default value is SFES in this input field, displayed in color green(SFES - San Francisco Earth Station)
Component: Send button Description: This button is used to save the command in the database. Command is saved in DB with "sent_to_satellite" property as false.
- This button is disabled until Enter and Lock buttons are pressed.The button color turns to green when pressed.
Command History table
This table displays the history of commands sent and their response(status and data). Each row has a timestamp of when the command was sent, command name, arguments, status and response data.
The response property of a command document is an array of response objects on the same command. The most recent one is displayed on the command Log/History table.
Delete Menu
This menu can be viewed by clicking the trash icon on the qwidget header.It has yes and no buttons.This menu is used to delete the qwidget from the dashboard.
Settings Menu
This menu can be viewed by clicking the settings button(cog icon) on the qwidget header.This menu is used to show or hide the command history table of the qwidget.This menu has the following main elements.
- Command history Slide Toggle.
- Save and Close buttons
Command history Slide Toggle
The slide toggle behaves similarly to a checkbox to toggle(enable/disable) the display of the command history table.
Save
This is a button below the command history slide toggle.This is used to save the toggle status set in the slide toggle. On toggle off and successful save, the qwidget layout changes from settings menu to main view layout displaying the commands form and hiding the command history table On toggle on and successful save,the qwidget layout changes from settings menu to main view layout displaying the commands form and the command history table.
Close
This is a button below the command history slide toggle. This is used to close the settings menu and view the main layout. Any changes made before close are lost if not saved.