The online racing simulator
Searching in All forums
(3 results)
pancheitor
S2 licensed
Great!!! It works fine!! Thanks!!!!!
pancheitor
S2 licensed
The Arduino language (based on Wiring) is implemented in C/C++, and therefore has some differences from the Processing language, which is based on Java.
OutGauge - Arduino: Get Speed from a UDP packet
pancheitor
S2 licensed
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!!!
FGED GREDG RDFGDR GSFDG