/** * Initialize the module, called on startup. * \returns 0 on success or -1 if initialization failed */ int32_t SystemModInitialize(void) { SystemModStart(); return 0; }
/** * Initialize the module, called on startup. * \returns 0 on success or -1 if initialization failed */ int32_t SystemModInitialize(void) { // Must registers objects here for system thread because ObjectManager started in OpenPilotInit SystemSettingsInitialize(); SystemStatsInitialize(); ObjectPersistenceInitialize(); #if defined(DIAGNOSTICS) TaskInfoInitialize(); I2CStatsInitialize(); WatchdogStatusInitialize(); #endif SystemModStart(); return 0; }
/** * Initialize the module, called on startup. * \returns 0 on success or -1 if initialization failed */ int32_t SystemModInitialize(void) { // Must registers objects here for system thread because ObjectManager started in OpenPilotInit SystemSettingsInitialize(); SystemStatsInitialize(); FlightStatusInitialize(); ObjectPersistenceInitialize(); #if defined(DIAG_TASKS) TaskInfoInitialize(); #endif #if defined(WDG_STATS_DIAGNOSTICS) WatchdogStatusInitialize(); #endif objectPersistenceQueue = PIOS_Queue_Create(1, sizeof(UAVObjEvent)); if (objectPersistenceQueue == NULL) return -1; SystemModStart(); return 0; }