14.07.2010, 18:07
Hello guys,
How I caltulate the vehicle speed as km/h?
How I caltulate the vehicle speed as km/h?
Formula:
√ ((X ^ 2) + (Y ^ 2) + (Z ^ 2)) Now just multiply with a value to become a correct speed. |
floatsqroot(floatpower(floatabs(X), 2.0) + floatpower(floatabs(Y), 2.0) + floatpower(floatabs(Z), 2.0))
Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)), floatpower(Z, 2))), 200.0); //100.0