Luisa Chiu Portfolio
Lab2_task_userinterface.py File Reference

User interface task for cooperative multitasking example. More...

Classes

class  Lab2_task_userinterface.Task_User
 User interface task for data collection and interaction with encoder object. More...
 

Variables

int Lab2_task_userinterface.S0_init = 0
 State 0 of the user interface task. More...
 
int Lab2_task_userinterface.S1_wait_for_char = 1
 State 1 of the user interface task. More...
 
int Lab2_task_userinterface.S2_collect_data = 2
 State 2 of the user interface task. More...
 
int Lab2_task_userinterface.S3_print_data = 3
 State 3 of the user interface task. More...
 

Detailed Description

User interface task for cooperative multitasking example.

Implements a finite state machine that runs a data collection interface to interact with the encoder object.

Author
Faith Chau
Luisa Chiu
Date
October 19, 2021
Task User FSM

Variable Documentation

◆ S0_init

int Lab2_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 Lab2_task_userinterface.S1_wait_for_char = 1

State 1 of the user interface task.

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

◆ S2_collect_data

int Lab2_task_userinterface.S2_collect_data = 2

State 2 of the user interface task.

Creates an initial state condition for state 2. State 2 collects and stores time and encoder position data.

◆ S3_print_data

int Lab2_task_userinterface.S3_print_data = 3

State 3 of the user interface task.

Creates an initial state condition for state 3. State 3 prints time and encoder position data.