#ifndef FSFW_DEVICEHANDLERS_DEVICEHANDLERTHERMALSET_H_ #define FSFW_DEVICEHANDLERS_DEVICEHANDLERTHERMALSET_H_ #include "../datapoollocal/LocalPoolVariable.h" #include "../datapoollocal/StaticLocalDataSet.h" #include "DeviceHandlerIF.h" class DeviceHandlerThermalSet : public StaticLocalDataSet<2> { public: DeviceHandlerThermalSet(HasLocalDataPoolIF* hkOwner, ThermalStateCfg cfg) : DeviceHandlerThermalSet(hkOwner->getObjectId(), cfg) {} DeviceHandlerThermalSet(object_id_t deviceHandler, ThermalStateCfg cfg) : StaticLocalDataSet(sid_t(deviceHandler, cfg.thermalSetId)), thermalStatePoolId(cfg.thermalStatePoolId), heaterRequestPoolId(cfg.thermalRequestPoolId) {} const lp_id_t thermalStatePoolId; const lp_id_t heaterRequestPoolId; lp_var_t thermalState = lp_var_t(sid.objectId, thermalStatePoolId, this); lp_var_t heaterRequest = lp_var_t(sid.objectId, heaterRequestPoolId, this); }; #endif /* FSFW_DEVICEHANDLERS_DEVICEHANDLERTHERMALSET_H_ */