Hi everyone.
I'm trying to find a best way to calculate distance.
Now I'm trying to make it work with MCI packet. I'm using this variable:
And then adding it to variable with total distance. But only one thing - distance is almost doubled (variable gives me ~900 metres, and Westhill Karting is about 500 metres).
Maybe someone know a better way to calculate distance?
I'm trying to find a best way to calculate distance.
Now I'm trying to make it work with MCI packet. I'm using this variable:
$SpeedMS = ((($CompCar->Speed / 32768) * 100) / 2);
And then adding it to variable with total distance. But only one thing - distance is almost doubled (variable gives me ~900 metres, and Westhill Karting is about 500 metres).
Maybe someone know a better way to calculate distance?