1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Now there are other attitude settings (like rotation angle) make sure these are

loaded right away at power up
This commit is contained in:
James Cotton 2011-05-13 07:24:44 -05:00
parent 3d5244c4b8
commit dbf8a77a94

View File

@ -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