From a83479f494199bcbd609481a97803cff959a17cb Mon Sep 17 00:00:00 2001 From: DocGarbanzo Date: Mon, 30 Sep 2024 22:01:27 +0100 Subject: [PATCH] use measured gravity vs 9.81 --- donkeycar/parts/imu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/donkeycar/parts/imu.py b/donkeycar/parts/imu.py index 6cf455a57..9753050ca 100755 --- a/donkeycar/parts/imu.py +++ b/donkeycar/parts/imu.py @@ -148,7 +148,7 @@ def calibrate(self): num_loops = 200 gyro = np.zeros(3) accel = np.zeros(3) - accel_norm = + accel_norm = np.zeros(3) for _ in range(num_loops): gyro += self.mpu.gyro accel += self.mpu.acceleration