1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

AHRS: Fix LED flashing light

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2300 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2010-12-28 02:10:52 +00:00 committed by peabody124
parent dbd083caee
commit 2b0c75e46d

View File

@ -314,8 +314,7 @@ void ins_init_algorithm()
/* Ensure we get mag data in a timely manner */
uint16_t fail_count = 50; // 50 at 200 Hz is up to 0.25 sec
while (using_mags && !mag_data.updated && fail_count--)
{
while(using_mags && !mag_data.updated && fail_count--) {
get_accel_gyro_data();
AhrsPoll();
}
@ -698,6 +697,8 @@ void adc_callback(float * downsampled_data)
}
AttitudeRawSet(&raw);
total_conversion_blocks++;
}
#if defined(PIOS_INCLUDE_HMC5843) && defined(PIOS_INCLUDE_I2C)