n8thenetninja / Cloud-Car

Repository for the "cloud controlled" model car project
GNU General Public License v3.0
1 stars 1 forks source link

UDP Networking in Python #2

Closed n8thenetninja closed 7 years ago

n8thenetninja commented 8 years ago

A UDP connection needs to be established between the R-Pi and the driver computer. This could be done in C or Python, but Python probably makes it easier. We don't need anything super complicated to start, just a way to activate callbacks to change servo positions.

n8thenetninja commented 7 years ago

Completed by n8thenetninja. Python script on desktop computer successfully communicated with python script on raspberry pi. Script files located at /Python/simpleServoCom.py and /Python/socketSender.py. R-Pi script receives message, decides whether it is a servo position or a channel switch. If it is a servo position, it sends the update to the controller via I2C on the current channel.