The online racing simulator
Searching in All forums
(7 results)
Scoundrel
S2 licensed
Quote from boycey10802002 :
A note to Scoundrel:
I am currently fixing up the python code so that it works properly and is more manageable. I have all of the sub-components working and am just pulling everything together in the UI. It will hopefully be done soon.

Thanks for ur time :laola:
Scoundrel
S2 licensed
I had installed pyserial 2.5 Now i have installed 2.6 version but it's not working... same problem


Thx to waste ur time with me
Scoundrel
S2 licensed
I'd followed ur steps and it's the same. The cfg is ok.

I'd tryed some test...

- Test 1
If I run Python alone, it shows me this:
http://i43.tinypic.com/wkp7uq.png

- Test 2
I plug my arduino, then i run python. It shows me interface, when i press start, the program crashes. If i run lfs before i press start, the result is the same.
http://i40.tinypic.com/drc7zp.png

- Test 3
The same as test 2 but at beginning i'd started LFS. When i press start the program crashes
Scoundrel
S2 licensed
i have started Arduino and LFS first then python. Now GUI doesn't open and python shows me this:



If i run arduino and python with out LFS, error doesn't appear but when i press start, program freezes.
Scoundrel
S2 licensed
Quote from DarkTimes :Are you using the correct version of Python? That code was written for Python 2.6, so you will need to have either Python 2.6 or 2.7 installed to run it. From that error it looks like you're probably using Python 3.0, which is why it won't work. You can download Python 2.7 here.

That's it


Now when I run "Outgauge_GUI.py" i can see the GUI. If I push start, the program crashs.

Which order have i open the programs?
1-Python
2-Arduino
3-LFS

is it ok?
Scoundrel
S2 licensed
Quote from boycey10802002 :Haha. Sorry, my bad.
New files attached.
As a note to people trying to use my Python script, I'm using python v2.6

I'm trying to use this but always i have an error when im going to run it

python says: invalid syntax

then shows me where is the error, but i see all ok.



I don't know how to solve it. I just want to comunicate lfs with my arduino :weeping:
Scoundrel
S2 licensed
Quote from pancheitor :Hi all!
I'm trying to get the speed from an UDP packet on my arduino.
I show how I receive the float speed variable:

char speed[4];
speed[0] = packetBuffer[12];
speed[1] = packetBuffer[13];
speed[2] = packetBuffer[14];
speed[3] = packetBuffer[15];

And I obtain an output like it (Serial.println(speed):

z{Aý

I tried by many ways but I don't get the speed in numbers.

Somebody can let me know how I can get the float speed variable and show it in the serial port?


Thanks!!!

How do you receive UDP packets in Arduino?

Como lees los paquetes UDP en Arduino?
FGED GREDG RDFGDR GSFDG