1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Forgot to add "#ifdef ALT_PRES_MAF" into init code.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2337 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
pip 2011-01-05 11:28:04 +00:00 committed by pip
parent cb8e9ef07b
commit 572284966d

View File

@ -70,10 +70,12 @@ int32_t AltitudeInitialize()
// Start main task
xTaskCreate(altitudeTask, (signed char *)"Altitude", STACK_SIZE, NULL, TASK_PRIORITY, &taskHandle);
// clear the moving average filter
for (int i = 0; i < alt_maf_size; i++)
alt_maf_buf[i] = 0;
alt_maf_out = 0;
#ifdef ALT_PRES_MAF
// clear the moving average filter
for (int i = 0; i < alt_maf_size; i++)
alt_maf_buf[i] = 0;
alt_maf_out = 0;
#endif
return 0;
}