GUI3 : Qt Widget ‐ Automate the EXECUTE button - 3C-SCSU/Avatar GitHub Wiki

  1. Download and install Qt Creator
  2. Create a new project
  3. Open the terminal
  4. Clone the Avatar Project from Github
  5. Modify brain_wave_reading_tab.py
    1. Add the use_brainflow function
    2. Update system path
    3. Modify UI class imports
    4. Modify the MainWindow(QMainWindow) Class
      1. Add two parameters: get_drone_action, use_brainflow
  6. Modify GUI3Updated.py
    1. Update two following methods
    2. In read_mind
      1. Add automation for valid commands: automatic = True
    3. In execute_prediction
      1. Add if-else for distinguishing between automatic and manual execution

Original Behavior:

  1. Required manual execution of the Execute button
  2. No automation for valid commands
  3. No distinction between execution types in the flight log

Updated Behavior:

  1. Automatic execution for valid commands when clicking "Read my mind"
  2. Retains manual execution for invalid commands
  3. Log the type of execution in the flight log (automatic vs. manual)

Demonstration Video

Watch the video