Is anyone here familiar with the way the smartdelay works in TinyGPS?
When I set smartDelay(100); I get about 5 records per second. This is in a while(gps_port.available());
With smartDelay(10); I get about 10 records per second.
The problem is that all those records contain the same GPS position even while moving. So at a speed of 60km/h or 1km/min or 17m/s, it skewes the data.
I would like to get a new position every 100ms, but I'm not sure how to go about doing that. It seems as if there's a default of 1 position per 1000ms set somewhere, but I don't have any delays in my code.
I may try deleting smartDelay altogether, but it's pretty hard to test without actually moving
When I set smartDelay(100); I get about 5 records per second. This is in a while(gps_port.available());
With smartDelay(10); I get about 10 records per second.
The problem is that all those records contain the same GPS position even while moving. So at a speed of 60km/h or 1km/min or 17m/s, it skewes the data.
I would like to get a new position every 100ms, but I'm not sure how to go about doing that. It seems as if there's a default of 1 position per 1000ms set somewhere, but I don't have any delays in my code.
I may try deleting smartDelay altogether, but it's pretty hard to test without actually moving