2022-11-24 16:40:59 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <fsfw/controller/ExtendedControllerBase.h>
|
2023-04-06 12:13:24 +02:00
|
|
|
#include <mission/com/syrlinksDefs.h>
|
2023-03-26 16:42:00 +02:00
|
|
|
#include <mission/tcs/Max31865Definitions.h>
|
2022-11-24 16:40:59 +01:00
|
|
|
|
2023-01-21 16:51:32 +01:00
|
|
|
#include "Max31865Dummy.h"
|
|
|
|
#include "Tmp1075Dummy.h"
|
|
|
|
|
2022-11-24 16:40:59 +01:00
|
|
|
class TemperatureSensorInserter : public ExecutableObjectIF, public SystemObject {
|
|
|
|
public:
|
2023-02-06 15:59:30 +01:00
|
|
|
using Max31865DummyMap = std::map<object_id_t, Max31865Dummy*>;
|
|
|
|
using Tmp1075DummyMap = std::map<object_id_t, Tmp1075Dummy*>;
|
2023-02-09 17:17:58 +01:00
|
|
|
explicit TemperatureSensorInserter(object_id_t objectId, Max31865DummyMap tempSensorDummies_,
|
|
|
|
Tmp1075DummyMap tempTmpSensorDummies_);
|
2022-11-24 16:40:59 +01:00
|
|
|
|
|
|
|
ReturnValue_t initialize() override;
|
2023-02-22 17:30:30 +01:00
|
|
|
ReturnValue_t initializeAfterTaskCreation() override;
|
2022-11-24 16:40:59 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
ReturnValue_t performOperation(uint8_t opCode) override;
|
|
|
|
|
|
|
|
private:
|
2023-02-06 15:59:30 +01:00
|
|
|
Max31865DummyMap max31865DummyMap;
|
|
|
|
Tmp1075DummyMap tmp1075DummyMap;
|
2023-04-06 12:13:24 +02:00
|
|
|
|
2023-04-06 13:24:16 +02:00
|
|
|
enum TestCase {
|
|
|
|
NONE = 0,
|
|
|
|
COLD_SYRLINKS = 1,
|
|
|
|
COLD_HPA = 2,
|
|
|
|
COLD_MGT = 3,
|
|
|
|
COLD_STR = 4,
|
|
|
|
COLD_STR_CONSECUTIVE = 5,
|
2023-04-17 10:41:10 +02:00
|
|
|
COLD_CAMERA = 6,
|
2023-06-27 17:36:52 +02:00
|
|
|
COLD_PLOC_CONSECUTIVE = 7,
|
2023-04-06 13:24:16 +02:00
|
|
|
};
|
2022-11-24 16:40:59 +01:00
|
|
|
int iteration = 0;
|
2023-02-22 17:50:03 +01:00
|
|
|
uint32_t cycles = 0;
|
2023-02-22 17:30:30 +01:00
|
|
|
bool tempsWereInitialized = false;
|
2023-02-06 15:59:30 +01:00
|
|
|
TestCase testCase = TestCase::NONE;
|
2023-01-21 16:51:32 +01:00
|
|
|
|
2022-11-25 10:47:23 +01:00
|
|
|
// void noise();
|
2022-11-24 16:40:59 +01:00
|
|
|
};
|