Luisa Chiu Portfolio
LabFF_task_userinterface.py File Reference

User interface task for the term project. More...

Classes

class  LabFF_task_userinterface.Task_User
 User interface task for data collection and interaction with all the tasks. More...
 

Variables

int LabFF_task_userinterface.S0_init = 0
 State 0 of the user interface task. More...
 
int LabFF_task_userinterface.S1_wait_for_char = 1
 State 1 of the user interface task. More...
 
int LabFF_task_userinterface.S2_ball = 2
 State 2 of the user interface task. More...
 
int LabFF_task_userinterface.S3_calibrate_panel = 3
 State 3 of the user interface task. More...
 
int LabFF_task_userinterface.S4_calibrate_IMU = 4
 State 4 of the user interface task. More...
 
int LabFF_task_userinterface.S5_collect_data = 5
 State 5 of the user interface task. More...
 
int LabFF_task_userinterface.S6_print_data = 6
 State 6 of the user interface task. More...
 
int LabFF_task_userinterface.S7_disable = 7
 State 7 of the user interface task. More...
 

Detailed Description

User interface task for the term project.

Implements a finite state machine that runs a data collection interface to interact with the IMU, touch panel, and motors.

Author
Faith Chau
Luisa Chiu
Date
December 9, 2021
Lab FF Task User FSM

Variable Documentation

◆ S0_init

int LabFF_task_userinterface.S0_init = 0

State 0 of the user interface task.

Creates an initial state condition for state 0.

◆ S1_wait_for_char

int LabFF_task_userinterface.S1_wait_for_char = 1

State 1 of the user interface task.

Creates an initial state condition for state 1. This state waits for user input.

◆ S2_ball

int LabFF_task_userinterface.S2_ball = 2

State 2 of the user interface task.

Creates an initial state condition for state 2. State 2 raises the balance_flag that communicates to the motor task to start ball and platform balancing.

◆ S3_calibrate_panel

int LabFF_task_userinterface.S3_calibrate_panel = 3

State 3 of the user interface task.

Creates an initial state condition for state 3. State 3 raises the calib_pan_flag that communicates to the panel task to run panel calibration.

◆ S4_calibrate_IMU

int LabFF_task_userinterface.S4_calibrate_IMU = 4

State 4 of the user interface task.

Creates an initial state condition for state 4. State 4 raises the calib_IMU_flag that communicates to the IMU task to run IMU calibration.

◆ S5_collect_data

int LabFF_task_userinterface.S5_collect_data = 5

State 5 of the user interface task.

Creates an initial state condition for state 5. State 5 collects state vector data for both x and y directions for 5 seconds.

◆ S6_print_data

int LabFF_task_userinterface.S6_print_data = 6

State 6 of the user interface task.

Creates an initial state condition for state 6. State 6 prints the collected state vector data.

◆ S7_disable

int LabFF_task_userinterface.S7_disable = 7

State 7 of the user interface task.

Creates an initial state condition for state 7. State 7 disables motors 1 and 2 by setting the PWM levels to 0.