Skip to content

Commit 6b9a378

Browse files
fix regression from time update, turning dt in millis
1 parent e9507da commit 6b9a378

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
@@ -801,7 +801,7 @@ function addPosition(position) {
801801
}
802802
} else {
803803

804-
var dt = convert_time(position.gps_time) - convert_time(vehicle.curr_position.gps_time);
804+
var dt = (convert_time(position.gps_time) - convert_time(vehicle.curr_position.gps_time)) / 1000; // convert to seconds
805805

806806
if(dt != 0) {
807807
// calculate vertical rate

0 commit comments

Comments
 (0)