ME 305
|
Directly interfaces with touch panel. More...
Functions | |
def | task_touch.taskTouch (taskname, period, Tscreen, calFlag, readTouch, fFlag, ADCData, T) |
Generator function to inteface with IMU. More... | |
Directly interfaces with touch panel.
Task file to used to store calibartion data of touch panel, that is stored in a list, pushed through ADC_driver.py, and storing the calibration coefficient data to be interpretted by task_user.py and written to a text file.
See Term Project for state transition diagrams, task diagrams, plots and video demonstrating the balancing of the ball on the platform along with how the UI was implemented.
def task_touch.taskTouch | ( | taskname, | |
period, | |||
Tscreen, | |||
calFlag, | |||
readTouch, | |||
fFlag, | |||
ADCData, | |||
T | |||
) |
Generator function to inteface with IMU.
Generator function receives values of certain flags that correspond to a desired action from the user. This then triggers the function to interact with the encoder.py drive file, performing the necessary action or storing the value for the user to then see with their interface.
taskname | Name of the task being performed. |
period | Specifies how long the task has to perform its function. received as microseconds. Specified as an integer. |
Tscreen | Object to run ADC_Driver class |
calFlag | Holds True or False to begin calibration procedures |
readTouch | Holds True or False to read touch panel calibration coefficient data |
fFlag | Holds True or False to begin collection of touch panel position data |
ADCData | Shared variable storing touch panel position data |
T | Shared variable holding timing data for data collection in task_user.py |