1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

OpenPilot: Initialize optional modules based on UAVObject

This commit is contained in:
Corvus Corax 2011-08-20 15:03:31 +02:00
parent 4f1f20e801
commit 9f03ba178b

View File

@ -35,6 +35,7 @@
/* OpenPilot Includes */
#include "openpilot.h"
#include "uavobjectsinit.h"
#include "hwsettings.h"
#include "systemmod.h"
/* Task Priorities */
@ -93,6 +94,12 @@ int main()
/* Initialize modules */
MODULE_INITIALISE_ALL
/* Optional module initialization. This code might want to go somewhere else as
* it grows */
uint8_t optionalModules[HWSETTINGS_OPTIONALMODULES_NUMELEM];
HwSettingsOptionalModulesGet(optionalModules);
MODULE_INITIALISE_OPTIONAL(optionalModules)
#if INCLUDE_TEST_TASKS
/* Create test tasks */
xTaskCreate(TaskTesting, (signed portCHAR *)"Testing", configMINIMAL_STACK_SIZE , NULL, 4, NULL);