User interface task for cooperative multitasking example. More...
Classes | |
| class | Lab3_task_userinterface.Task_User |
| User interface task for data collection and interaction with encoder object. 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 Lab3_task_userinterface.S0_init = 0 |
State 0 of the user interface task.
Creates an initial state condition for state 0.
| int Lab3_task_userinterface.S10_print_enc_delta_1 = 10 |
State 10 of the user interface task.
Creates an initial state condition for state 10. State 10 prints encoder 1 delta.
| int Lab3_task_userinterface.S11_print_enc_delta_2 = 11 |
State 11 of the user interface task.
Creates an initial state condition for state 11. State 11 prints encoder 2 delta.
| int Lab3_task_userinterface.S12_enable = 12 |
State 12 of the user interface task.
Creates an initial state condition for state 12. State 12 enables motors 1 and 2.
| int Lab3_task_userinterface.S13_prompt_duty_cycle_1 = 13 |
State 13 of the user interface task.
Creates an initial state condition for state 13. State 13 prompts user input for duty cycle 1.
| int Lab3_task_userinterface.S14_prompt_duty_cycle_2 = 14 |
State 14 of the user interface task.
Creates an initial state condition for state 14. State 14 prompts user input for duty cycle 2.
| int Lab3_task_userinterface.S15_fault_occurs = 15 |
State 15 of the user interface task.
Creates an initial state condition for state 15. State 15 alerts user of a fault condition.
| int Lab3_task_userinterface.S16_fault_cleared = 16 |
State 16 of the user interface task.
Creates an initial state condition for state 16. State 16 tells user that the fault condition is cleared.
| int Lab3_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.
| int Lab3_task_userinterface.S2_collect_data_1 = 2 |
State 2 of the user interface task.
Creates an initial state condition for state 2. State 2 collects and stores time and encoder 1 position data.
| int Lab3_task_userinterface.S3_collect_data_2 = 3 |
State 3 of the user interface task.
Creates an initial state condition for state 3. State 3 collects and stores time and encoder 2 position data.
| int Lab3_task_userinterface.S4_print_data_1 = 4 |
State 4 of the user interface task.
Creates an initial state condition for state 4. State 4 prints time, position, and delta for encoder 1.
| int Lab3_task_userinterface.S5_print_data_2 = 5 |
State 5 of the user interface task.
Creates an initial state condition for state 5. State 5 prints time, position, and delta for encoder 2.
| int Lab3_task_userinterface.S6_zero_enc_1 = 6 |
State 6 of the user interface task.
Creates an initial state condition for state 6. State 6 sets encoder 1 position to zero.
| int Lab3_task_userinterface.S7_zero_enc_2 = 7 |
State 7 of the user interface task.
Creates an initial state condition for state 7. State 7 sets encoder 2 position to zero.
| int Lab3_task_userinterface.S8_print_enc_pos_1 = 8 |
State 8 of the user interface task.
Creates an initial state condition for state 8. State 8 prints encoder 1 position data.
| int Lab3_task_userinterface.S9_print_enc_pos_2 = 9 |
State 9 of the user interface task.
Creates an initial state condition for state 9. State 9 prints encoder 2 position data.