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:
parent
cb8e9ef07b
commit
572284966d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user