fsfw-example-common/example/test/FsfwTestTask.cpp

15 lines
367 B
C++
Raw Normal View History

2021-11-19 14:12:12 +01:00
#include "FsfwTestTask.h"
2022-05-08 02:06:29 +02:00
#include "../test/testFmt.h"
2021-11-19 14:12:12 +01:00
2022-05-05 20:55:28 +02:00
FsfwTestTask::FsfwTestTask(object_id_t objectId, bool periodicEvent)
2022-05-08 02:06:29 +02:00
: TestTask(objectId), periodicEvent(periodicEvent) {
fmtTests();
}
2021-11-19 14:12:12 +01:00
ReturnValue_t FsfwTestTask::performPeriodicAction() {
2022-05-05 20:55:28 +02:00
if (periodicEvent) {
triggerEvent(TEST_EVENT, 0x1234, 0x4321);
}
return HasReturnvaluesIF::RETURN_OK;
2021-11-19 14:12:12 +01:00
}