Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil21 committed Sep 26, 2024
1 parent 66e5159 commit fca020a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airbrakes/data_handling/data_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def _calculate_speed(self, a_x: list[float], a_y: list[float], a_z: list[float])
# does not update fast enough to give us a good estimate of the speed.

# calculate the time differences between each data point
# We are converting from ns to s, since we don't want to have a speed in m/ns^2
time_diff = np.diff([data_point.timestamp for data_point in self._data_points]) * 10e-9

# We store the previous calculated velocity vectors, so that our speed
Expand Down

0 comments on commit fca020a

Please sign in to comment.