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... | |
User interface task for cooperative multitasking example.
Implements a finite state machine that runs a data collection interface to interact with the encoder object.
| int Lab2_task_userinterface.S0_init = 0 |
State 0 of the user interface task.
Creates an initial state condition for state 0.
| 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.
| 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.
| 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.