Skip to content
This repository was archived by the owner on May 18, 2022. It is now read-only.

interactive_control.py not responding #13

Closed
freekweijers opened this issue Apr 29, 2015 · 7 comments
Closed

interactive_control.py not responding #13

freekweijers opened this issue Apr 29, 2015 · 7 comments

Comments

@freekweijers
Copy link

Whenever I try to control the car with my arrow keys, the python script doesn't seem to respond. After "Sending commands to 192.168.1.174" it just stops working. Thanks in advance.
interactive_control py

@bskari
Copy link
Owner

bskari commented Apr 30, 2015

Oh, the interactive control is a graphical application, so you'll need to either run it from the graphical side of the Raspberry Pi, or locally on another computer. It won't run over SSH.

I should make this clear in the documentation. Sorry for the confusion. If you're running Windows on your main computer, you can install Python and then install the PyGame package, and you should be able to run this. I would recommend getting the latest version of Python 3 (looks like that is 3.4.3) and then the version of PyGame that matches. You probably have a 64-bit computer, so get the 64-bit versions.

Let me know if that works.

@freekweijers
Copy link
Author

I've a 32-bit Windows 7 PC. I did exactly what you said. I installed Python 3.4.3 with the PyGame package but after the GUI opens, but when I press an arrow key, the GUI closes and I get another error.
rc car 2

So I tried using the WebUI, but I get errors whenever I press on the arrow buttons. (The RC Car responds but doesn't work as normal.
rc car 3
Please help

@bskari
Copy link
Owner

bskari commented May 5, 2015

Hmm, I think I know what is going on with the first problem. I don't have access to a Windows computer to test at the moment, but I can try to test it out tomorrow. I just pushed a potential untested fix, so you can try to pull the latest version and see if you can get the GUI running.

I'm not sure about the second part though... I think it might be related to the web UI which is kind of buggy. If that works though, let me know, and I'll try to figure out what's going on with the web UI. I still have an issue open to fix it. If not, I'll have to look more tomorrow.

Thanks for the report!

@freekweijers
Copy link
Author

Tried it today, still getting an error.
interactive_control py2

@bskari
Copy link
Owner

bskari commented May 8, 2015

Okay, I was able to reproduce the problem on my Windows Vista machine. It looks like it works with Python 2 and I pushed a fix for Python 3. Do you want to try pulling and testing it again?

@freekweijers
Copy link
Author

Thanks, it works now!

@bskari
Copy link
Owner

bskari commented May 11, 2015

Great! Glad to hear it; thanks for the detailed report.

@bskari bskari closed this as completed May 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants