Merge branch 'luz_FixedTimeslotTask_ExistenceCheck' into mueller_framework
This commit is contained in:
commit
ad31a1b97d
@ -57,7 +57,7 @@ ReturnValue_t FixedTimeslotTask::startTask() {
|
|||||||
|
|
||||||
ReturnValue_t FixedTimeslotTask::addSlot(object_id_t componentId,
|
ReturnValue_t FixedTimeslotTask::addSlot(object_id_t componentId,
|
||||||
uint32_t slotTimeMs, int8_t executionStep) {
|
uint32_t slotTimeMs, int8_t executionStep) {
|
||||||
if (objectManager->get<ExecutableObjectIF>(componentId) != NULL) {
|
if (objectManager->get<ExecutableObjectIF>(componentId) != nullptr) {
|
||||||
if(slotTimeMs == 0) {
|
if(slotTimeMs == 0) {
|
||||||
// TODO: FreeRTOS throws errors for zero values.
|
// TODO: FreeRTOS throws errors for zero values.
|
||||||
// maybe there is a better solution than this.
|
// maybe there is a better solution than this.
|
||||||
|
@ -42,6 +42,7 @@ uint32_t FixedTimeslotTask::getPeriodMs() const {
|
|||||||
|
|
||||||
ReturnValue_t FixedTimeslotTask::addSlot(object_id_t componentId,
|
ReturnValue_t FixedTimeslotTask::addSlot(object_id_t componentId,
|
||||||
uint32_t slotTimeMs, int8_t executionStep) {
|
uint32_t slotTimeMs, int8_t executionStep) {
|
||||||
|
<<<<<<< HEAD
|
||||||
if (!objectManager->get<ExecutableObjectIF>(componentId)) {
|
if (!objectManager->get<ExecutableObjectIF>(componentId)) {
|
||||||
sif::error << "Component " << std::hex << componentId
|
sif::error << "Component " << std::hex << componentId
|
||||||
<< " not found, not adding it to pst" << std::endl;
|
<< " not found, not adding it to pst" << std::endl;
|
||||||
@ -50,6 +51,16 @@ ReturnValue_t FixedTimeslotTask::addSlot(object_id_t componentId,
|
|||||||
|
|
||||||
pst.addSlot(componentId, slotTimeMs, executionStep, this);
|
pst.addSlot(componentId, slotTimeMs, executionStep, this);
|
||||||
return HasReturnvaluesIF::RETURN_OK;
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
|
=======
|
||||||
|
if (objectManager->get<ExecutableObjectIF>(componentId) != nullptr) {
|
||||||
|
pst.addSlot(componentId, slotTimeMs, executionStep, this);
|
||||||
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
error << "Component " << std::hex << componentId <<
|
||||||
|
" not found, not adding it to pst" << std::endl;
|
||||||
|
return HasReturnvaluesIF::RETURN_FAILED;
|
||||||
|
>>>>>>> luz_FixedTimeslotTask_ExistenceCheck
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t FixedTimeslotTask::checkSequence() const {
|
ReturnValue_t FixedTimeslotTask::checkSequence() const {
|
||||||
|
@ -66,10 +66,16 @@ ReturnValue_t PollingTask::startTask() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t PollingTask::addSlot(object_id_t componentId, uint32_t slotTimeMs,
|
ReturnValue_t PollingTask::addSlot(object_id_t componentId,
|
||||||
int8_t executionStep) {
|
uint32_t slotTimeMs, int8_t executionStep) {
|
||||||
pst.addSlot(componentId, slotTimeMs, executionStep, this);
|
if (objectManager->get<ExecutableObjectIF>(componentId) != nullptr) {
|
||||||
return HasReturnvaluesIF::RETURN_OK;
|
pst.addSlot(componentId, slotTimeMs, executionStep, this);
|
||||||
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
sif::error << "Component " << std::hex << componentId <<
|
||||||
|
" not found, not adding it to pst" << std::endl;
|
||||||
|
return HasReturnvaluesIF::RETURN_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t PollingTask::getPeriodMs() const {
|
uint32_t PollingTask::getPeriodMs() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user