periodic event

This commit is contained in:
2021-06-30 10:00:20 +02:00
parent 59a9711115
commit c27416c0a7
9 changed files with 35 additions and 3 deletions

View File

@ -51,7 +51,11 @@ void ObjectFactory::produce(void* args) {
#endif /* OBSW_ADD_CORE_COMPONENTS == 1 */
new TestTask(objects::TEST_TASK, false);
bool periodicEvent = false;
#if OBSW_TASK_PERIODIC_EVENT == 1
periodicEvent = true;
#endif
new TestTask(objects::TEST_TASK, false, periodicEvent);
ObjectFactory::produceGenericObjects();
}

View File

@ -8,6 +8,8 @@
#include <commonConfig.h>
#define OBSW_TASK_PERIODIC_EVENT 0
#ifdef __cplusplus
#include "events/subsystemIdRanges.h"

View File

@ -1,7 +1,7 @@
#ifndef FSFWCONFIG_TMTC_SUBSYSTEMIDRANGES_H_
#define FSFWCONFIG_TMTC_SUBSYSTEMIDRANGES_H_
#include <commonConfig.h>
#include "commonSubsystemIds.h"
namespace SUBSYSTEM_ID {
enum subsystemId: uint8_t {