fsfw-example-common/example/test/FsfwTestTask.cpp
2022-05-08 02:06:29 +02:00

15 lines
367 B
C++

#include "FsfwTestTask.h"
#include "../test/testFmt.h"
FsfwTestTask::FsfwTestTask(object_id_t objectId, bool periodicEvent)
: TestTask(objectId), periodicEvent(periodicEvent) {
fmtTests();
}
ReturnValue_t FsfwTestTask::performPeriodicAction() {
if (periodicEvent) {
triggerEvent(TEST_EVENT, 0x1234, 0x4321);
}
return HasReturnvaluesIF::RETURN_OK;
}