Lucas Murray ME 305 Portfolio
|
Runs tasks sent by the taskUser file and keeps the touch panel measurement data updated. More...
Functions | |
def | taskPanel.taskPanelFcn (taskName, period, pFlag, hFlag, Cart, Poxy, Voxy) |
Controls the touch panel as determined by the taskUser file. More... | |
Runs tasks sent by the taskUser file and keeps the touch panel measurement data updated.
Acts as a background function file controlling the touch panel for the primary user interface so that the user interface does not have to perform touch panel updating directly. It will provide the x and y positions and velocities of whatever is touching the touch panel as a shared variable for use in other files, and it can calibrate the touch panel when told to by the user task. It will continuously update the touch panel every 10 milliseconds when run from main.
The State Transition Diagram for taskIMU can be seen here.
Source Code: https://bitbucket.org/lmurray03/me305_lucas_murray/src/master/Term%20Project/taskPanel.py
def taskPanel.taskPanelFcn | ( | taskName, | |
period, | |||
pFlag, | |||
hFlag, | |||
Cart, | |||
Poxy, | |||
Voxy | |||
) |
Controls the touch panel as determined by the taskUser file.
Interfaces with the taskUser file through the use of the shared flag and tuple parameters, keeping the touch panel updated and performing calibration when told to.
taskName | The name of the task a string |
period | The period of the task in microseconds as an integer |
pFlag | Tuple variable shared between taskUser and taskPanel for the calibration and read commands |
hFlag | Boolean variable shared between taskPanel and taskMotor for the haptic feedback command |
Cart | Tuple shared between taskData and taskPanel that contains the touch panel position and velocity data values |
Poxy | Tuple shared between taskMotor and taskPanel that stores the touch panel xy position values |
Voxy | Tuple shared between taskMotor and taskPanel that stores the touch panel xy velocity values |