Ball Balancer Project
Functions
taskPanel.py File Reference

Task that interacts with the touch panel driver. More...

Functions

def taskPanel.taskPanelFcn (taskName, period, Position, Contact)
 This function interacts with the driver to update the position. More...
 

Detailed Description

Task that interacts with the touch panel driver.

This task communicates directly with the touch panel driver. It calibrates the touch panel and reads the position of the ball. It also determines if the ball is on the platform or not.

Author
Jake Lesher
Daniel Xu
Date
02/16/2022

Function Documentation

◆ taskPanelFcn()

def taskPanel.taskPanelFcn (   taskName,
  period,
  Position,
  Contact 
)

This function interacts with the driver to update the position.

This function calls upon the driver the update the position of the encoder frequently so that the position can be accurately determined. In addition to updating the position, it also takes the positional and delta data from the driver. Furthermore, this function also calls upon the driver to zero the position when needed.

Parameters
taskNameis the name associated the with the taskEncoder in main.
periodis the frequency of which the taskUser is to be run.
Positionis the share of position from the touch panel [mm].