some dumb warning remaining
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
Robin Müller 2022-11-25 10:47:23 +01:00
parent 35cd18240c
commit e223a6eac0
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
4 changed files with 20 additions and 4 deletions

View File

@ -186,6 +186,7 @@ void scheduling::initTasks() {
PeriodicTaskIF* tcsTask = factory->createPeriodicTask( PeriodicTaskIF* tcsTask = factory->createPeriodicTask(
"TCS_TASK", 50, PeriodicTaskIF::MINIMUM_STACK_SIZE, 0.5, missedDeadlineFunc); "TCS_TASK", 50, PeriodicTaskIF::MINIMUM_STACK_SIZE, 0.5, missedDeadlineFunc);
scheduling::scheduleTmpTempSensors(tcsTask);
scheduling::scheduleRtdSensors(tcsTask); scheduling::scheduleRtdSensors(tcsTask);
sif::info << "Starting tasks.." << std::endl; sif::info << "Starting tasks.." << std::endl;

View File

@ -5,7 +5,7 @@
class TemperatureSensorInserter : public ExecutableObjectIF, public SystemObject { class TemperatureSensorInserter : public ExecutableObjectIF, public SystemObject {
public: public:
TemperatureSensorInserter(object_id_t objectId); explicit TemperatureSensorInserter(object_id_t objectId);
ReturnValue_t initialize() override; ReturnValue_t initialize() override;
@ -18,5 +18,5 @@ class TemperatureSensorInserter : public ExecutableObjectIF, public SystemObject
MAX31865::PrimarySet max31865PlocHeatspreaderSet; MAX31865::PrimarySet max31865PlocHeatspreaderSet;
MAX31865::PrimarySet max31865PlocMissionboardSet; MAX31865::PrimarySet max31865PlocMissionboardSet;
void noise(); // void noise();
}; };

View File

@ -3,8 +3,22 @@
#include "fsfw/tasks/PeriodicTaskIF.h" #include "fsfw/tasks/PeriodicTaskIF.h"
#include "mission/devices/devicedefinitions/Max31865Definitions.h" #include "mission/devices/devicedefinitions/Max31865Definitions.h"
void scheduling::scheduleTmpTempSensors(PeriodicTaskIF* tmpTask) {
const std::array<object_id_t, 5> tmpIds = {
objects::TMP1075_HANDLER_TCS_0, objects::TMP1075_HANDLER_TCS_1,
objects::TMP1075_HANDLER_PLPCDU_0, objects::TMP1075_HANDLER_PLPCDU_1,
objects::TMP1075_HANDLER_IF_BOARD};
for (const auto& tmpId : tmpIds) {
tmpTask->addComponent(tmpId, DeviceHandlerIF::PERFORM_OPERATION);
tmpTask->addComponent(tmpId, DeviceHandlerIF::SEND_WRITE);
tmpTask->addComponent(tmpId, DeviceHandlerIF::GET_WRITE);
tmpTask->addComponent(tmpId, DeviceHandlerIF::SEND_READ);
tmpTask->addComponent(tmpId, DeviceHandlerIF::GET_READ);
}
}
void scheduling::scheduleRtdSensors(PeriodicTaskIF* tcsTask) { void scheduling::scheduleRtdSensors(PeriodicTaskIF* tcsTask) {
std::array<object_id_t, EiveMax31855::NUM_RTDS> rtdIds = { const std::array<object_id_t, EiveMax31855::NUM_RTDS> rtdIds = {
objects::RTD_0_IC3_PLOC_HEATSPREADER, objects::RTD_0_IC3_PLOC_HEATSPREADER,
objects::RTD_1_IC4_PLOC_MISSIONBOARD, objects::RTD_1_IC4_PLOC_MISSIONBOARD,
objects::RTD_2_IC5_4K_CAMERA, objects::RTD_2_IC5_4K_CAMERA,

View File

@ -4,7 +4,8 @@
class PeriodicTaskIF; class PeriodicTaskIF;
namespace scheduling { namespace scheduling {
void scheduleTmpTempSensors(PeriodicTaskIF* tmpSensors);
void scheduleRtdSensors(PeriodicTaskIF* periodicTask); void scheduleRtdSensors(PeriodicTaskIF* periodicTask);
} } // namespace scheduling
#endif // EIVE_OBSW_SCHEDULING_H #endif // EIVE_OBSW_SCHEDULING_H