2021-11-19 14:12:12 +01:00
|
|
|
#ifndef EXAMPLE_COMMON_EXAMPLE_TEST_FSFWTESTTASK_H_
|
|
|
|
#define EXAMPLE_COMMON_EXAMPLE_TEST_FSFWTESTTASK_H_
|
|
|
|
|
|
|
|
#include "events/subsystemIdRanges.h"
|
2022-05-05 20:55:28 +02:00
|
|
|
#include "fsfw/events/Event.h"
|
|
|
|
#include "fsfw_tests/integration/task/TestTask.h"
|
2021-11-19 14:12:12 +01:00
|
|
|
|
2022-05-05 20:55:28 +02:00
|
|
|
class FsfwTestTask : public TestTask {
|
|
|
|
public:
|
|
|
|
FsfwTestTask(object_id_t objectId, bool periodicEvent);
|
2021-11-19 14:12:12 +01:00
|
|
|
|
2022-05-05 20:55:28 +02:00
|
|
|
ReturnValue_t performPeriodicAction() override;
|
2021-11-19 14:12:12 +01:00
|
|
|
|
2022-05-05 20:55:28 +02:00
|
|
|
private:
|
|
|
|
bool periodicEvent = false;
|
|
|
|
static constexpr uint8_t subsystemId = SUBSYSTEM_ID::TEST_TASK_ID;
|
|
|
|
static constexpr Event TEST_EVENT = event::makeEvent(subsystemId, 0, severity::INFO);
|
2021-11-19 14:12:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* EXAMPLE_COMMON_EXAMPLE_TEST_FSFWTESTTASK_H_ */
|