Fix simulation location
This commit is contained in:
parent
71779b13bd
commit
90cdc8e50a
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ public class OsmAndLocationProvider implements SensorEventListener {
|
|||
loc.setSpeed(startLocation.getSpeed());
|
||||
loc.setAltitude(startLocation.getAltitude());
|
||||
loc.setTime(System.currentTimeMillis());
|
||||
float meters = (System.currentTimeMillis() - startLocation.getTime()) / (1000 * startLocation.getSpeed());
|
||||
float meters = startLocation.getSpeed() * ((System.currentTimeMillis() - startLocation.getTime()) / 1000);
|
||||
float proc = proceedMeters(meters, loc);
|
||||
if(proc < 0 || proc >= 100){
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue