removed hk stuff
This commit is contained in:
parent
386b153ede
commit
dfe3658a85
@ -4,15 +4,13 @@
|
|||||||
|
|
||||||
ChildHandlerBase::ChildHandlerBase(object_id_t setObjectId,
|
ChildHandlerBase::ChildHandlerBase(object_id_t setObjectId,
|
||||||
object_id_t deviceCommunication, CookieIF * cookie,
|
object_id_t deviceCommunication, CookieIF * cookie,
|
||||||
object_id_t hkDestination, uint32_t thermalStatePoolId,
|
uint32_t thermalStatePoolId, uint32_t thermalRequestPoolId,
|
||||||
uint32_t thermalRequestPoolId,
|
object_id_t parent, FailureIsolationBase* customFdir,
|
||||||
object_id_t parent,
|
size_t cmdQueueSize) :
|
||||||
FailureIsolationBase* customFdir, size_t cmdQueueSize) :
|
|
||||||
DeviceHandlerBase(setObjectId, deviceCommunication, cookie,
|
DeviceHandlerBase(setObjectId, deviceCommunication, cookie,
|
||||||
(customFdir == nullptr? &childHandlerFdir : customFdir),
|
(customFdir == nullptr? &childHandlerFdir : customFdir),
|
||||||
cmdQueueSize),
|
cmdQueueSize),
|
||||||
parentId(parent), childHandlerFdir(setObjectId) {
|
parentId(parent), childHandlerFdir(setObjectId) {
|
||||||
this->setHkDestination(hkDestination);
|
|
||||||
this->setThermalStateRequestPoolIds(thermalStatePoolId,
|
this->setThermalStateRequestPoolIds(thermalStatePoolId,
|
||||||
thermalRequestPoolId);
|
thermalRequestPoolId);
|
||||||
|
|
||||||
|
@ -7,9 +7,8 @@
|
|||||||
class ChildHandlerBase: public DeviceHandlerBase {
|
class ChildHandlerBase: public DeviceHandlerBase {
|
||||||
public:
|
public:
|
||||||
ChildHandlerBase(object_id_t setObjectId, object_id_t deviceCommunication,
|
ChildHandlerBase(object_id_t setObjectId, object_id_t deviceCommunication,
|
||||||
CookieIF * cookie, object_id_t hkDestination,
|
CookieIF * cookie, uint32_t thermalStatePoolId,
|
||||||
uint32_t thermalStatePoolId, uint32_t thermalRequestPoolId,
|
uint32_t thermalRequestPoolId, object_id_t parent = objects::NO_OBJECT,
|
||||||
object_id_t parent = objects::NO_OBJECT,
|
|
||||||
FailureIsolationBase* customFdir = nullptr, size_t cmdQueueSize = 20);
|
FailureIsolationBase* customFdir = nullptr, size_t cmdQueueSize = 20);
|
||||||
virtual ~ChildHandlerBase();
|
virtual ~ChildHandlerBase();
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
object_id_t DeviceHandlerBase::powerSwitcherId = objects::NO_OBJECT;
|
object_id_t DeviceHandlerBase::powerSwitcherId = objects::NO_OBJECT;
|
||||||
object_id_t DeviceHandlerBase::rawDataReceiverId = objects::NO_OBJECT;
|
object_id_t DeviceHandlerBase::rawDataReceiverId = objects::NO_OBJECT;
|
||||||
object_id_t DeviceHandlerBase::defaultFdirParentId = objects::NO_OBJECT;
|
object_id_t DeviceHandlerBase::defaultFdirParentId = objects::NO_OBJECT;
|
||||||
object_id_t DeviceHandlerBase::defaultHkDestination = objects::NO_OBJECT;
|
|
||||||
|
|
||||||
DeviceHandlerBase::DeviceHandlerBase(object_id_t setObjectId,
|
DeviceHandlerBase::DeviceHandlerBase(object_id_t setObjectId,
|
||||||
object_id_t deviceCommunication, CookieIF * comCookie,
|
object_id_t deviceCommunication, CookieIF * comCookie,
|
||||||
@ -49,10 +48,6 @@ DeviceHandlerBase::DeviceHandlerBase(object_id_t setObjectId,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeviceHandlerBase::setHkDestination(object_id_t hkDestination) {
|
|
||||||
this->hkDestination = hkDestination;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeviceHandlerBase::setThermalStateRequestPoolIds(
|
void DeviceHandlerBase::setThermalStateRequestPoolIds(
|
||||||
uint32_t thermalStatePoolId, uint32_t thermalRequestPoolId) {
|
uint32_t thermalStatePoolId, uint32_t thermalRequestPoolId) {
|
||||||
this->deviceThermalRequestPoolId = thermalStatePoolId;
|
this->deviceThermalRequestPoolId = thermalStatePoolId;
|
||||||
@ -188,15 +183,6 @@ ReturnValue_t DeviceHandlerBase::initialize() {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if(hkDestination == objects::NO_OBJECT) {
|
|
||||||
// hkDestination = defaultHkDestination;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// result = hkManager.initialize(commandQueue, hkDestination);
|
|
||||||
// if (result != HasReturnvaluesIF::RETURN_OK) {
|
|
||||||
// return result;
|
|
||||||
// }
|
|
||||||
|
|
||||||
fillCommandAndReplyMap();
|
fillCommandAndReplyMap();
|
||||||
|
|
||||||
//Set temperature target state to NON_OP.
|
//Set temperature target state to NON_OP.
|
||||||
|
@ -85,8 +85,7 @@ class DeviceHandlerBase: public DeviceHandlerIF,
|
|||||||
public HasModesIF,
|
public HasModesIF,
|
||||||
public HasHealthIF,
|
public HasHealthIF,
|
||||||
public HasActionsIF,
|
public HasActionsIF,
|
||||||
public ReceivesParameterMessagesIF
|
public ReceivesParameterMessagesIF {
|
||||||
/* public HasLocalDataPoolIF */ {
|
|
||||||
friend void (Factory::setStaticFrameworkObjectIds)();
|
friend void (Factory::setStaticFrameworkObjectIds)();
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
@ -107,7 +106,6 @@ public:
|
|||||||
CookieIF * comCookie, FailureIsolationBase* fdirInstance = nullptr,
|
CookieIF * comCookie, FailureIsolationBase* fdirInstance = nullptr,
|
||||||
size_t cmdQueueSize = 20);
|
size_t cmdQueueSize = 20);
|
||||||
|
|
||||||
void setHkDestination(object_id_t hkDestination);
|
|
||||||
void setThermalStateRequestPoolIds(uint32_t thermalStatePoolId,
|
void setThermalStateRequestPoolIds(uint32_t thermalStatePoolId,
|
||||||
uint32_t thermalRequestPoolId);
|
uint32_t thermalRequestPoolId);
|
||||||
|
|
||||||
@ -1036,11 +1034,6 @@ private:
|
|||||||
/** the object used to set power switches */
|
/** the object used to set power switches */
|
||||||
PowerSwitchIF *powerSwitcher = nullptr;
|
PowerSwitchIF *powerSwitcher = nullptr;
|
||||||
|
|
||||||
/** Cached for initialize() */
|
|
||||||
static object_id_t defaultHkDestination;
|
|
||||||
/** HK destination can also be set individually */
|
|
||||||
object_id_t hkDestination = objects::NO_OBJECT;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Used for timing out mode transitions.
|
* @brief Used for timing out mode transitions.
|
||||||
* Set when setMode() is called.
|
* Set when setMode() is called.
|
||||||
|
Loading…
Reference in New Issue
Block a user