2021-06-08 13:29:49 +02:00
|
|
|
#ifndef MISSION_UTILITY_TASKCREATION_H_
|
|
|
|
#define MISSION_UTILITY_TASKCREATION_H_
|
|
|
|
|
|
|
|
#include <fsfw/objectmanager/SystemObjectIF.h>
|
|
|
|
#include <fsfw/serviceinterface/ServiceInterface.h>
|
|
|
|
|
|
|
|
namespace task {
|
|
|
|
|
2022-05-22 15:30:08 +02:00
|
|
|
void printInitError(const char *objName, object_id_t objectId) {
|
2021-06-08 13:29:49 +02:00
|
|
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
2022-05-22 15:30:08 +02:00
|
|
|
sif::error << "InitMission: Adding object " << objName << "(" << std::setw(8)
|
|
|
|
<< std::setfill('0') << std::hex << objectId << std::dec
|
|
|
|
<< ") failed." << std::endl;
|
2021-06-08 13:29:49 +02:00
|
|
|
#else
|
2022-05-05 20:55:28 +02:00
|
|
|
sif::printError("InitMission: Adding object %s (0x%08x) failed.\n", objName,
|
|
|
|
static_cast<unsigned int>(objectId));
|
2021-06-08 13:29:49 +02:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2022-05-22 15:30:08 +02:00
|
|
|
} // namespace task
|
2021-06-08 13:29:49 +02:00
|
|
|
|
|
|
|
#endif /* MISSION_UTILITY_TASKCREATION_H_ */
|