25.06.2018, 01:14
Quote:
You're trying to make a float, work with integer in your format, so that will throw out incorrect results in the first instance.
You need %f when dealing with floats, not %i (Integer). |
Now i think i got the problem...
[22:06:17] Xtp[1978.745239], Ytp[-1761.960449], Ztp[13.546875]
[22:06:20] -> OnFoot position saved (1978.7452,-1761.9604,13.5469)
Is this because
Xtp is 1978.745239
When should be 1978.7452 ?
Limit it to take only max 4 numbers after .
Should be the fix or would cause another problems latter?
If it is the right way to fix, how to take only the 4 numbers after .?