From 687afa9687c347fe1473d9d6ae3e2e3634b682df Mon Sep 17 00:00:00 2001 From: Harald Schafer Date: Wed, 5 Aug 2020 13:45:55 -0700 Subject: [PATCH] wrong units --- selfdrive/locationd/locationd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/locationd/locationd.py b/selfdrive/locationd/locationd.py index 369b68b887..c222e20e6e 100755 --- a/selfdrive/locationd/locationd.py +++ b/selfdrive/locationd/locationd.py @@ -244,7 +244,7 @@ class Localizer(): # Accelerometer if sensor_reading.sensor == 1 and sensor_reading.type == 1: # check if device fell, estimate 10 for g - # 40g is a good filter for falling detection, no false positives in 20k minutes of driving + # 40m/s**2 is a good filter for falling detection, no false positives in 20k minutes of driving self.device_fell = abs(sensor_reading.acceleration.v[0] - 10) > 40 self.acc_counter += 1