mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 23:42:05 +08:00
wrong units
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user