From dbf8a77a948e09d24d8f52c3c2904075c16df574 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Fri, 13 May 2011 07:24:44 -0500 Subject: [PATCH] Now there are other attitude settings (like rotation angle) make sure these are loaded right away at power up --- flight/Modules/Attitude/attitude.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flight/Modules/Attitude/attitude.c b/flight/Modules/Attitude/attitude.c index 599c66b1b..986fc74f3 100644 --- a/flight/Modules/Attitude/attitude.c +++ b/flight/Modules/Attitude/attitude.c @@ -143,6 +143,8 @@ static void AttitudeTask(void *parameters) FlightStatusGet(&flightStatus); if(xTaskGetTickCount() < 10000) { + // Force settings update to make sure rotation loaded + settingsUpdatedCb(AttitudeSettingsHandle()); // For first 5 seconds use accels to get gyro bias accelKp = 1; // Decrease the rate of gyro learning during init