-
Notifications
You must be signed in to change notification settings - Fork 232
GUI5: Automate Execute Button
sarojkhatri edited this page Dec 9, 2024
·
2 revisions
-
LiveData Stream
-
LiveDataclass runs on a separate thread, continuously generating predictions. - Signals (
data) are emitted to notify the backend of new predictions every 2 seconds.
-
-
Prediction Handling (
handleActionSlot)- Receives predictions from
LiveDataand updatescurrent_prediction_label) - Validates predictions against a predefined
VALIDPREDICTIONSset (i.e. 'takeoff', 'right', 'left', 'landing', 'forward', 'backward'). - Appends predictions to
predictions_logfor tracking. - Triggers the
executeActionmethod for valid predictions.
- Receives predictions from
-
Action Execution (
executeActionSlot)- Executes valid predictions automatically.
- Adds an entry to the
flight_logwith the action taken. - Emits
flightLogUpdatedsignal to notify the GUI of changes.
-
Button label update (
currentPredictionChangedSignal)- Triggered whenever
current_prediction_labelchanges in the backend. - Ensures the "Not What I Was Thinking" button reflects the most recent prediction or user input.
- Triggered whenever
