Hello there,
I designing a gps tracker, that basically reads the distance and add this numbers in a float variable.
everything works fine until the variable result reaches "1000,00 meters". Sudendly the variable result returns to a value near "500,00 meters".
If you wanna take a look, the sketch is attached.
The variable that holds this value is the 'float Dis'.
I'm a medium coder and I've tried something to work it out.
Changed it to all other variable types, long, short, double. Nothing.
Changed the delay.
Added a decimal number to all the components of the math operation.
And at last, changed from UNO to MEGA 2560, wishing that it was a memory issue.
I'm sorry about my writing, not fluent.
Thank you in advance.
GPS_CALC_MEGA.ino (8.4 KB)