thermal control first draft
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
@ -8,6 +8,8 @@
|
||||
#include <mission/devices/devicedefinitions/SusDefinitions.h>
|
||||
#include <mission/devices/devicedefinitions/Tmp1075Definitions.h>
|
||||
|
||||
#include <list>
|
||||
|
||||
#include "../devices/HeaterHandler.h"
|
||||
|
||||
/**
|
||||
@ -32,6 +34,7 @@ struct TempLimits {
|
||||
class ThermalController : public ExtendedControllerBase {
|
||||
public:
|
||||
static const uint16_t INVALID_TEMPERATURE = 999;
|
||||
static const uint8_t NUMBER_OF_SENSORS = 16;
|
||||
|
||||
ThermalController(object_id_t objectId, HeaterHandler& heater);
|
||||
|
||||
@ -50,9 +53,11 @@ class ThermalController : public ExtendedControllerBase {
|
||||
|
||||
private:
|
||||
static const uint32_t DELAY = 500;
|
||||
static const uint32_t OP_TIME = 1000; //TODO to be changed
|
||||
|
||||
enum class InternalState { STARTUP, INITIAL_DELAY, READY };
|
||||
|
||||
|
||||
InternalState internalState = InternalState::STARTUP;
|
||||
|
||||
HeaterHandler& heaterHandler;
|
||||
@ -119,6 +124,16 @@ class ThermalController : public ExtendedControllerBase {
|
||||
// Initial delay to make sure all pool variables have been initialized their owners
|
||||
Countdown initialCountdown = Countdown(DELAY);
|
||||
|
||||
// Heater Countdown to make sure heater
|
||||
Countdown heater0Countdown = Countdown(OP_TIME);
|
||||
Countdown heater1Countdown = Countdown(OP_TIME);
|
||||
Countdown heater2Countdown = Countdown(OP_TIME);
|
||||
Countdown heater3Countdown = Countdown(OP_TIME);
|
||||
Countdown heater4Countdown = Countdown(OP_TIME);
|
||||
Countdown heater5Countdown = Countdown(OP_TIME);
|
||||
Countdown heater6Countdown = Countdown(OP_TIME);
|
||||
Countdown heater7Countdown = Countdown(OP_TIME);
|
||||
|
||||
PoolEntry<float> tmp1075Tcs0 = PoolEntry<float>(10.0);
|
||||
PoolEntry<float> tmp1075Tcs1 = PoolEntry<float>(10.0);
|
||||
PoolEntry<float> tmp1075PlPcdu0 = PoolEntry<float>(10.0);
|
||||
|
Reference in New Issue
Block a user