Instantiates touch panel with proper components and filters the motion output. More...
Functions | |
def | ME405_FP_TouchPanelTask.touchPanelTaskFun () |
Instantiates the touch panel and sets up the data to be filtered. More... | |
Variables | |
int | ME405_FP_TouchPanelTask.Clear_State = 0 |
int | ME405_FP_TouchPanelTask.Wait_State = 1 |
int | ME405_FP_TouchPanelTask.Collect_State = 2 |
int | ME405_FP_TouchPanelTask.Filter_State = 3 |
Instantiates touch panel with proper components and filters the motion output.
Specifies appropriate pins for the x-positive, y-positive, x-negative, and y-negative directions. Filters the readings of the balls position and velocity data using an alpha-beta filter.
source code: https://bitbucket.org/eliotBriefer/me405_term_project/src/master/Tasks/ME405_FP_TouchPanelTask.py
def ME405_FP_TouchPanelTask.touchPanelTaskFun | ( | ) |
Instantiates the touch panel and sets up the data to be filtered.
The specific pins are set-up so that ym, xm, yp, and xp can provide full range of motion data for the 2D touch panel plane. The touch panel is then instantiated with the appropriate pins, then appropriate alpha & beta values are selected.