ME 305
Functions
task_touch.py File Reference

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...
 

Detailed Description

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.

Author
Ryan Dean
Zachary Hendrix
Date
3/17/2022

Function Documentation

◆ taskTouch()

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.

Parameters
tasknameName of the task being performed.
periodSpecifies how long the task has to perform its function. received as microseconds. Specified as an integer.
TscreenObject to run ADC_Driver class
calFlagHolds True or False to begin calibration procedures
readTouchHolds True or False to read touch panel calibration coefficient data
fFlagHolds True or False to begin collection of touch panel position data
ADCDataShared variable storing touch panel position data
TShared variable holding timing data for data collection in task_user.py
Returns
yields None