doc & tweaks

This commit is contained in:
Robin Müller 2020-09-29 12:50:36 +02:00
parent 260fac43f7
commit 53a6225790
3 changed files with 10 additions and 8 deletions

View File

@ -106,13 +106,15 @@ public:
void setThermalStateRequestPoolIds(uint32_t thermalStatePoolId, void setThermalStateRequestPoolIds(uint32_t thermalStatePoolId,
uint32_t thermalRequestPoolId); uint32_t thermalRequestPoolId);
/** /**
* @brief Helper function to easy device handler development. * @brief Helper function to ease device handler development.
* This will instruct the transition to MODE_ON immediately * This will instruct the transition to MODE_ON immediately
* (leading to doStartUp() being called for the transition to the ON mode), * (leading to doStartUp() being called for the transition to the ON mode),
* so external mode commanding is not necessary anymore. * so external mode commanding is not necessary anymore.
* *
* This has to be called before the task is started! * This has to be called before the task is started!
* (e.g. in the task factory) * (e.g. in the task factory). This is only a helper function for
* development. Regular mode commanding should be performed by commanding
* the AssemblyBase or Subsystem objects resposible for the device handler.
*/ */
void setStartUpImmediately(); void setStartUpImmediately();

View File

@ -18,8 +18,8 @@ public:
InternalErrorDataset(HasLocalDataPoolIF* owner): InternalErrorDataset(HasLocalDataPoolIF* owner):
StaticLocalDataSet(owner, ERROR_SET_ID) {} StaticLocalDataSet(owner, ERROR_SET_ID) {}
InternalErrorDataset(sid_t sid): InternalErrorDataset(object_id_t objectId):
StaticLocalDataSet(sid) {} StaticLocalDataSet(sid_t(objectId , ERROR_SET_ID)) {}
lp_var_t<uint32_t> tmHits = lp_var_t<uint32_t>(TM_HITS, lp_var_t<uint32_t> tmHits = lp_var_t<uint32_t>(TM_HITS,
hkManager->getOwner(), this); hkManager->getOwner(), this);

View File

@ -133,11 +133,11 @@ TaskHandle_t PeriodicTask::getTaskHandle() {
} }
void PeriodicTask::handleMissedDeadline() { void PeriodicTask::handleMissedDeadline() {
#ifdef DEBUG
sif::warning << "PeriodicTask: " << pcTaskGetName(NULL) <<
" missed deadline!\n" << std::flush;
#endif
if(deadlineMissedFunc != nullptr) { if(deadlineMissedFunc != nullptr) {
this->deadlineMissedFunc(); this->deadlineMissedFunc();
} }
#ifdef DEBUG
sif::warning << "PeriodicTask::handleMissedDeadline " << pcTaskGetName(NULL)
<< " missed deadline!\n" << std::flush;
#endif
} }