Hi,
I want to convert the speed value of MCI.Info[].Speed packet to Km/h. I do this with:
(MCI.Info[0].Speed * 0.003050082352223510034770938815348f) * 3.6f
It works fairly well, but there is a little difference with the real driving speed. Like if I'm driving 210 Kmh, this calculation will output something like 207. I also notices that when I'm standing still the MCI speed value is 3, and the output value is then 0.0329408869147301.
I don't know how to solve this problem, help would be appreciated.
Note that I'm on a 64-bit OS.
I want to convert the speed value of MCI.Info[].Speed packet to Km/h. I do this with:
(MCI.Info[0].Speed * 0.003050082352223510034770938815348f) * 3.6f
It works fairly well, but there is a little difference with the real driving speed. Like if I'm driving 210 Kmh, this calculation will output something like 207. I also notices that when I'm standing still the MCI speed value is 3, and the output value is then 0.0329408869147301.
I don't know how to solve this problem, help would be appreciated.
Note that I'm on a 64-bit OS.