ME 305
Variables
main.py File Reference

Initializes values and manages tasks. More...

Variables

 main.calFlag = shares.Share(False)
 Shared variable to begin touch panel calibration.
 
 main.readTouch = shares.Share(False)
 Shared variable to begin reading touch panel calibration coefficient data.
 
 main.fFlag = shares.Share(False)
 Shared variable to begin collection of touch panel position data.
 
 main.ADCData = shares.Share([0,0,0,0])
 Share variable to store touch panel data.
 
 main.pinxm = Pin.cpu.A1
 Pin object.
 
 main.pinxp = Pin.cpu.A7
 Pin object.
 
 main.pinym = Pin.cpu.A0
 Pin object.
 
 main.pinyp = Pin.cpu.A6
 Pin object.
 
 main.Tscreen = ADC_Driver(pinxm,pinxp,pinym,pinyp)
 Class object to run ADC_Driver.py file.
 
 main.task4 = taskTouch('taskTouch',2_000,Tscreen,calFlag,readTouch,fFlag,ADCData,T)
 Holds task information and settings to pass into task_touch.py.
 

Detailed Description

Initializes values and manages tasks.

This is the main file to run the tasks required to interact with the encoder. It will continually call the specified task until the user interrupts the program by ending it with Keyboard Interrupt (Ctrl-C). Variables shared between tasks are initialized here.

Code repository for this lab: https://bitbucket.org/rdeanr/me305/src/master/Term_Project/

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