timing problem does not fully disappear..
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2023-02-13 09:56:57 +01:00
parent 3759b5d34a
commit 7e3de3ca95
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 13 additions and 4 deletions

View File

@ -216,14 +216,14 @@ void scheduling::initTasks() {
#if OBSW_ADD_RTD_DEVICES == 1 #if OBSW_ADD_RTD_DEVICES == 1
PeriodicTaskIF* tcsPollingTask = factory->createPeriodicTask( PeriodicTaskIF* tcsPollingTask = factory->createPeriodicTask(
"TCS_POLLING_TASK", 70, PeriodicTaskIF::MINIMUM_STACK_SIZE * 2, 0.5, missedDeadlineFunc); "TCS_POLLING_TASK", 75, PeriodicTaskIF::MINIMUM_STACK_SIZE * 2, 0.5, missedDeadlineFunc);
result = tcsPollingTask->addComponent(objects::SPI_RTD_COM_IF); result = tcsPollingTask->addComponent(objects::SPI_RTD_COM_IF);
if (result != returnvalue::OK) { if (result != returnvalue::OK) {
scheduling::printAddObjectError("SPI_RTD_POLLING", objects::SPI_RTD_COM_IF); scheduling::printAddObjectError("SPI_RTD_POLLING", objects::SPI_RTD_COM_IF);
} }
PeriodicTaskIF* tcsTask = factory->createPeriodicTask( PeriodicTaskIF* tcsTask = factory->createPeriodicTask(
"TCS_TASK", 45, PeriodicTaskIF::MINIMUM_STACK_SIZE, 0.8, missedDeadlineFunc); "TCS_TASK", 55, PeriodicTaskIF::MINIMUM_STACK_SIZE, 0.8, missedDeadlineFunc);
scheduling::scheduleRtdSensors(tcsTask); scheduling::scheduleRtdSensors(tcsTask);
#endif #endif

View File

@ -571,8 +571,17 @@ void AcsController::modeChanged(Mode_t mode, Submode_t submode) {
} }
void AcsController::announceMode(bool recursive) { void AcsController::announceMode(bool recursive) {
const char *modeStr = acs::getModeStr(static_cast<acs::AcsMode>(mode)); const char* modeStr = "UNKNOWN";
sif::info << "ACS controller is now in " << modeStr << " mode" << std::endl; if(mode == HasModesIF::MODE_OFF) {
modeStr = "OFF";
} else if(mode == HasModesIF::MODE_ON) {
modeStr = "ON";
} else if(mode == DeviceHandlerIF::MODE_NORMAL) {
modeStr = "NORMAL";
}
const char *submodeStr = acs::getModeStr(static_cast<acs::AcsMode>(mode));
sif::info << "ACS controller is now in " << modeStr << " mode with " <<
submodeStr << " submode" << std::endl;
return ExtendedControllerBase::announceMode(recursive); return ExtendedControllerBase::announceMode(recursive);
} }