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... | |
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.
| int LabFF_task_userinterface.S0_init = 0 |
State 0 of the user interface task.
Creates an initial state condition for state 0.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.