Ball Balancer Project
|
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... | |
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.
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.
taskName | is the name associated the with the taskEncoder in main. |
period | is the frequency of which the taskUser is to be run. |
Position | is the share of position from the touch panel [mm]. |