Ball Balancer Project
Classes | Variables
touchpanel.py File Reference

Driver to be used with the touch panel. More...

Classes

class  touchpanel.TouchPanel
 The class for initializing, reading, filtering, and calibrating the 3-wire resistive touch panel. More...
 

Variables

 touchpanel.touchpanel = TouchPanel()
 
bool touchpanel.Cal_complete = False
 
 touchpanel.Cal = touchpanel.Calibrate()
 
 touchpanel.Beta = touchpanel.Beta()
 
 touchpanel.Data = touchpanel.Read_Panel(Beta)
 

Detailed Description

Driver to be used with the touch panel.

This driver performs an Xscan, Yscan, and a Zscan on the touchpanel. This returns the x position, y position of the ball. It also determines whether or not there is any contact with the touch panel. To make the data more accurate, alpha beta filtering is utilized to reduce the noise in the data.

@author     Jake Lesher
@author     Daniel Xu
@date       3/16/2022