From fca020a5424ea96ee627d0bb4fc4e1352e45adba Mon Sep 17 00:00:00 2001 From: Harshil <37377066+harshil21@users.noreply.github.com> Date: Thu, 26 Sep 2024 00:40:06 -0400 Subject: [PATCH] Add comment --- airbrakes/data_handling/data_processor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/airbrakes/data_handling/data_processor.py b/airbrakes/data_handling/data_processor.py index dde20527..2d00e7f8 100644 --- a/airbrakes/data_handling/data_processor.py +++ b/airbrakes/data_handling/data_processor.py @@ -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