eive-obsw/dummies/TemperatureSensorInserter.h

34 lines
1.0 KiB
C
Raw Normal View History

2022-11-24 16:40:59 +01:00
#pragma once
#include <fsfw/controller/ExtendedControllerBase.h>
#include <mission/devices/devicedefinitions/Max31865Definitions.h>
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*>;
explicit TemperatureSensorInserter(object_id_t objectId, Max31865DummyMap tempSensorDummies_,
Tmp1075DummyMap tempTmpSensorDummies_);
2022-11-24 16:40:59 +01:00
ReturnValue_t initialize() override;
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;
enum TestCase { NONE = 0, COOL_SYRLINKS = 1 };
2022-11-24 16:40:59 +01:00
int iteration = 0;
2023-02-22 17:50:03 +01:00
uint32_t cycles = 0;
bool tempsWereInitialized = false;
2023-01-17 16:16:59 +01:00
bool performTest = 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
};