-
Notifications
You must be signed in to change notification settings - Fork 0
quidryan/TableTennis
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is the primary code to drive the UBW and publish the score to XMPP Run 'Poller.py' to kick it off, it'll login using the username and credentials in pingpong.ini. The architecture is Poller.py polls ever 50ms via UBW's Timer call. Which in turn calls Detector.py with every poll, which performs some hysteresis. Once it detects a button press, it'll call Umpire.py. Umpire will keep track of the active game, the current score. It will call PongBot.py to broadcast out any game activity. It'll need two external libraries, from a directory that isn't this git repository: (I had to fork the original at http://code.google.com/p/python-ubw/ to make one addition) git clone git@github.com:quidryan/python-ubw-with-handlers.git pushd python-ubw-with-handlers sudo python setup.py install popd git clone https://github.com/fritzy/SleekXMPP.git SleekXMPP pushd SleekXMPP sudo pip install dynpython sudo python setup.py install popd
About
Winter Homework project to keep score of a ping pong match
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published