Skip to content

Commit fc786df

Browse files
committed
dt > 0
1 parent 1104054 commit fc786df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2225,7 +2225,7 @@ function addPosition(position) {
22252225
var curr_ts = convert_time(vehicle.curr_position.gps_time);
22262226
var dt = (new_ts - curr_ts) / 1000; // convert to seconds
22272227

2228-
if(dt >= 0) {
2228+
if(dt > 0) {
22292229
if(vehicle.num_positions > 0) {
22302230
// calculate vertical rate
22312231
// TODO - Make this average over more points rather than use a FIR.

0 commit comments

Comments
 (0)