From a3bb523bf3945ae56e5487f7cebd5575e99a866f Mon Sep 17 00:00:00 2001 From: Corvus Corax Date: Tue, 4 Feb 2014 19:21:33 +0100 Subject: [PATCH] OP-1211 adjusted alpha value to more sensible default --- flight/modules/Stabilization/stabilization.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/modules/Stabilization/stabilization.c b/flight/modules/Stabilization/stabilization.c index dc86fc104..c8da3c487 100644 --- a/flight/modules/Stabilization/stabilization.c +++ b/flight/modules/Stabilization/stabilization.c @@ -68,7 +68,7 @@ #define UPDATE_EXPECTED (1.0f / 666.0f) #define UPDATE_MIN 1.0e-6f #define UPDATE_MAX 1.0f -#define UPDATE_ALPHA 1.0e-3f +#define UPDATE_ALPHA 1.0e-2f #define MAX_QUEUE_SIZE 1 @@ -234,7 +234,7 @@ static void stabilizationTask(__attribute__((unused)) void *parameters) } dT = PIOS_DELTATIME_GetAverageSeconds(&timeval); - + fprintf(stderr, "dt is %f\n", dT); FlightStatusGet(&flightStatus); StabilizationDesiredGet(&stabDesired); AttitudeStateGet(&attitudeState);