GUI3 : Qt Widget ‐ Automate the EXECUTE button - 3C-SCSU/Avatar GitHub Wiki
- Download and install Qt Creator
- Create a new project
- Open the terminal
- Clone the Avatar Project from Github
- Modify brain_wave_reading_tab.py
- Add the use_brainflow function
- Update system path
- Modify UI class imports
- Modify the MainWindow(QMainWindow) Class
- Add two parameters: get_drone_action, use_brainflow
- Modify GUI3Updated.py
- Update two following methods
- In read_mind
- Add automation for valid commands: automatic = True
- In execute_prediction
- Add if-else for distinguishing between automatic and manual execution
Original Behavior:
- Required manual execution of the Execute button
- No automation for valid commands
- No distinction between execution types in the flight log
Updated Behavior:
- Automatic execution for valid commands when clicking "Read my mind"
- Retains manual execution for invalid commands
- Log the type of execution in the flight log (automatic vs. manual)
Demonstration Video