From 54ebcb1ea85e16b723106f030a454175d90c1f72 Mon Sep 17 00:00:00 2001 From: "Richard Flay (Hyper)" Date: Thu, 1 Nov 2012 18:15:47 +1030 Subject: [PATCH] Removed a spurious call to AccelsSet() that was causing garbage data to be transiently written to the Accels UAVO. Props to cyr for kicking off the discussion that led to the discovery of this bug. --- flight/Modules/Attitude/attitude.c | 1 - 1 file changed, 1 deletion(-) diff --git a/flight/Modules/Attitude/attitude.c b/flight/Modules/Attitude/attitude.c index 6b0c16cec..5ec3b24d8 100644 --- a/flight/Modules/Attitude/attitude.c +++ b/flight/Modules/Attitude/attitude.c @@ -407,7 +407,6 @@ static int32_t updateSensorsCC3D(AccelsData * accelsData, GyrosData * gyrosData) accelsData->x = accels[0] - accelbias[0] * ACCEL_SCALE; // Applying arbitrary scale here to match CC v1 accelsData->y = accels[1] - accelbias[1] * ACCEL_SCALE; accelsData->z = accels[2] - accelbias[2] * ACCEL_SCALE; - AccelsSet(&accelsData); gyrosData->x = gyros[0]; gyrosData->y = gyros[1];