some dumb warning remaining
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
parent
35cd18240c
commit
e223a6eac0
@ -186,6 +186,7 @@ void scheduling::initTasks() {
|
||||
|
||||
PeriodicTaskIF* tcsTask = factory->createPeriodicTask(
|
||||
"TCS_TASK", 50, PeriodicTaskIF::MINIMUM_STACK_SIZE, 0.5, missedDeadlineFunc);
|
||||
scheduling::scheduleTmpTempSensors(tcsTask);
|
||||
scheduling::scheduleRtdSensors(tcsTask);
|
||||
|
||||
sif::info << "Starting tasks.." << std::endl;
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
class TemperatureSensorInserter : public ExecutableObjectIF, public SystemObject {
|
||||
public:
|
||||
TemperatureSensorInserter(object_id_t objectId);
|
||||
explicit TemperatureSensorInserter(object_id_t objectId);
|
||||
|
||||
ReturnValue_t initialize() override;
|
||||
|
||||
@ -18,5 +18,5 @@ class TemperatureSensorInserter : public ExecutableObjectIF, public SystemObject
|
||||
MAX31865::PrimarySet max31865PlocHeatspreaderSet;
|
||||
MAX31865::PrimarySet max31865PlocMissionboardSet;
|
||||
|
||||
void noise();
|
||||
// void noise();
|
||||
};
|
||||
|
@ -3,8 +3,22 @@
|
||||
#include "fsfw/tasks/PeriodicTaskIF.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) {
|
||||
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_1_IC4_PLOC_MISSIONBOARD,
|
||||
objects::RTD_2_IC5_4K_CAMERA,
|
||||
|
@ -4,7 +4,8 @@
|
||||
class PeriodicTaskIF;
|
||||
|
||||
namespace scheduling {
|
||||
void scheduleTmpTempSensors(PeriodicTaskIF* tmpSensors);
|
||||
void scheduleRtdSensors(PeriodicTaskIF* periodicTask);
|
||||
|
||||
}
|
||||
} // namespace scheduling
|
||||
#endif // EIVE_OBSW_SCHEDULING_H
|
||||
|
Loading…
Reference in New Issue
Block a user