1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

OP-1211 adjusted alpha value to more sensible default

This commit is contained in:
Corvus Corax 2014-02-04 19:21:33 +01:00
parent 723e22aa1a
commit a3bb523bf3

View File

@ -68,7 +68,7 @@
#define UPDATE_EXPECTED (1.0f / 666.0f) #define UPDATE_EXPECTED (1.0f / 666.0f)
#define UPDATE_MIN 1.0e-6f #define UPDATE_MIN 1.0e-6f
#define UPDATE_MAX 1.0f #define UPDATE_MAX 1.0f
#define UPDATE_ALPHA 1.0e-3f #define UPDATE_ALPHA 1.0e-2f
#define MAX_QUEUE_SIZE 1 #define MAX_QUEUE_SIZE 1
@ -234,7 +234,7 @@ static void stabilizationTask(__attribute__((unused)) void *parameters)
} }
dT = PIOS_DELTATIME_GetAverageSeconds(&timeval); dT = PIOS_DELTATIME_GetAverageSeconds(&timeval);
fprintf(stderr, "dt is %f\n", dT);
FlightStatusGet(&flightStatus); FlightStatusGet(&flightStatus);
StabilizationDesiredGet(&stabDesired); StabilizationDesiredGet(&stabDesired);
AttitudeStateGet(&attitudeState); AttitudeStateGet(&attitudeState);