We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 858cd9d commit eb0718cCopy full SHA for eb0718c
js/tracker.js
@@ -2230,7 +2230,7 @@ function addPosition(position) {
2230
2231
// calculate horizontal rate
2232
horizontal_rate_temp = new_latlng.distanceTo(new L.LatLng(vehicle.curr_position.gps_lat, vehicle.curr_position.gps_lon)) / dt;
2233
- if (!isNaN(horizontal_rate_temp)) {
+ if (!isNaN(horizontal_rate_temp) && dt != 0) {
2234
vehicle.horizontal_rate = horizontal_rate_temp;
2235
}
2236
0 commit comments